Rudolf Polzer wrote:
> But I'd still like to know how to dynamically create a method with a
> dynamically given name. If possible, without such a hackery.

irb(main):003:0> Fixnum.instance_eval {define_method(:power) do |a| self 
** a end}
#<Proc:0x40210220@(irb):3>
irb(main):004:0> 3.power 2
9

The instance_eval is because it's a private method.