Module: Gemmy::Patches::ClassPatch::InstanceMethods::ToProc
- Defined in:
- lib/gemmy/patches/class_patch.rb
Instance Method Summary collapse
-
#to_proc ⇒ Object
facets I.e if an initializer takes one arg, then you can do %w{ arg1 arg2 }.map &ClassToInitialize.
Instance Method Details
#to_proc ⇒ Object
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 |