Module: Gemmy::Patches::ClassPatch::InstanceMethods::ToProc

Defined in:
lib/gemmy/patches/class_patch.rb

Instance Method Summary collapse

Instance Method Details

#to_procObject

facets I.e if an initializer takes one arg, then you can do %w{ arg1 arg2 }.map &ClassToInitialize



7
8
9
# File 'lib/gemmy/patches/class_patch.rb', line 7

def to_proc
  proc{|*args| new(*args)}
end