Class: Proc

Inherits:
Object
  • Object
show all
Defined in:
lib/expendables/proc.rb

Instance Method Summary collapse

Instance Method Details

#+@Object



7
8
9
# File 'lib/expendables/proc.rb', line 7

def +@
  self
end

#compose(o) ⇒ Object Also known as: >>



2
3
4
# File 'lib/expendables/proc.rb', line 2

def compose o
  -> *args { (+o).call((+self).call(*args)) }
end