Class: Symbol

Inherits:
Object show all
Defined in:
lib/scruby/core_ext/symbol.rb

Instance Method Summary collapse

Instance Method Details

#to_procObject



2
3
4
# File 'lib/scruby/core_ext/symbol.rb', line 2

def to_proc
  proc { |obj, *args| obj.send(self, *args) }
end