Module: Tins::ToProc

Defined in:
lib/tins/to_proc.rb

Instance Method Summary collapse

Instance Method Details

#to_procObject

:nocov:



4
5
6
7
8
# File 'lib/tins/to_proc.rb', line 4

def to_proc
  lambda do |obj, *args|
    obj.__send__(self, *args[0..-1])
  end
end