Class Symbol
In: lib/prelude.rb
Parent: Object

Methods

curry   to_proc  

Public Instance methods

[Source]

    # File lib/prelude.rb, line 42
42:   def curry(one, *args)
43:     proc { |*args| self.to_proc.call(one, *args) }
44:   end

[Source]

    # File lib/prelude.rb, line 38
38:   def to_proc
39:     proc { |obj, *args| obj.send(self, *args) }
40:   end