module Gemmy::Patches::ClassPatch::InstanceMethods::ToProc

Public Instance Methods

to_proc() click to toggle source

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

# File lib/gemmy/patches/class_patch.rb, line 7
def to_proc
  proc{|*args| new(*args)}
end