Topic: define_method and ''

In these days I was trying define_method(param) and I found that if a pass param as a string with '', like

define_method('#{name}')

it doesn't create the method (I used instance.methods.sort for verifying it): changing to "" solves the problem. Why? cheers

nic

Re: define_method and ''

Presumably because '#{name}' is a literal, and "#{name}" supports substitution?

Re: define_method and ''

... roll Yes, you're right, it was simple...