Method: FunctionObject::Macro#sclass_mixin
- Defined in:
- lib/function_object/macro.rb
#sclass_mixin ⇒ Object
32 33 34 35 36 37 38 39 40 |
# File 'lib/function_object/macro.rb', line 32 def sclass_mixin Module.new.tap do |mixin| mixin.module_eval <<-RUBY, __FILE__, __LINE__ + 1 def call(#{arg_list_stmt}) new(#{arg_list_stmt}).call end RUBY end end |