[ruby 1.8]
Assume I have:
dummy \"string\" do puts \"thing\" end
Now, this is a call to a method which has as
use define_method:
class Bar end bar_obj = Bar.new class << bar_obj define_method :new_dynamic_method do puts "content goes here" end end bar_obj.new_dynamic_method
Output:
content goes here