Method: Module#extend_dynamic_object

Defined in:
lib/mega/macro.rb

#extend_dynamic_object(base, options) ⇒ Object

Note: Is this the best name for this callback?



85
86
87
88
89
# File 'lib/mega/macro.rb', line 85

def extend_dynamic_object( base, options )
  macros.each do |m|
    (class << base; self ; end).class_eval m.call( options )
  end
end