Class: Consequence::Eventually

Inherits:
Monad show all
Defined in:
lib/consequence/eventually.rb

Instance Attribute Summary

Attributes inherited from Monad

#value

Instance Method Summary collapse

Methods inherited from Monad

#==, #>>, [], inherited, #initialize, #inspect, #to_s

Constructor Details

This class inherits a constructor from Consequence::Monad

Instance Method Details

#<<(_) ⇒ Object



9
# File 'lib/consequence/eventually.rb', line 9

def <<(_); self end

#execute(proc) ⇒ Object



5
6
7
# File 'lib/consequence/eventually.rb', line 5

def execute(proc)
  value.(proc)
end