Class: Streamlet::Failure

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(result) ⇒ Failure

Returns a new instance of Failure.



31
32
33
# File 'lib/streamlet.rb', line 31

def initialize(result)
  @result = result
end

Instance Attribute Details

#resultObject (readonly)

Returns the value of attribute result.



39
40
41
# File 'lib/streamlet.rb', line 39

def result
  @result
end

Instance Method Details

#and_then(&_) ⇒ Object



35
36
37
# File 'lib/streamlet.rb', line 35

def and_then(&_)
  self
end