define_method in instance_eval
James Whiteman
4 posts
|
Hello, all. Does anyone have a good explanation for this?
It seems that define_method is pushing the method ‘shout’ into Foo’s own m_tbl instead of in the metaclass. |
Dave Thomas
Administrator
65 posts
|
define_method always creates an instance method—now idea why, but it’s a deliberate decision of the implementers. Dave |
James Whiteman
4 posts
|
Thanks, Dave—fantastic series by the way. |
3 posts, 2 voices
