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.



33
34
35
# File 'lib/streamlet.rb', line 33

def initialize(result)
  @result = result
end

Instance Attribute Details

#resultObject (readonly)

Returns the value of attribute result.



41
42
43
# File 'lib/streamlet.rb', line 41

def result
  @result
end

Instance Method Details

#and_then(_) ⇒ Object



37
38
39
# File 'lib/streamlet.rb', line 37

def and_then(_)
  self
end