Scripsit ille ?Robert Klemme? <bob.news / gmx.net>:
> isn't this easier?
> 
> class Fixnum
>   def power(exp)
>     self ** exp
>   end
> end
> 
> a=10
> a.power 2

It is, but there might be cases where one does not know the name of the
method in advance. Perhaps when dynamically creating more than one method
in method_missing().

And... wasn't there a way to convert a string to a symbol?


-- 
In diesem Sinne kannst du's wagen.
Verbinde dich! du sollst in diesen Tagen
Mit Freuden meine K?nste sehn;
Ich gebe dir, was noch kein Mensch gesehn.