Class: Pathway::Result::Failure
Instance Attribute Summary
#error, #value
Instance Method Summary
collapse
failure, #failure?, result, success
Constructor Details
#initialize(error) ⇒ Failure
Returns a new instance of Failure.
26
27
28
|
# File 'lib/pathway/result.rb', line 26
def initialize(error)
@error = error
end
|
Instance Method Details
#success? ⇒ Boolean
30
31
32
|
# File 'lib/pathway/result.rb', line 30
def success?
false
end
|
#tee(_ = nil) ⇒ Object
38
39
40
|
# File 'lib/pathway/result.rb', line 38
def tee(_=nil)
self
end
|
#then(_ = nil) ⇒ Object
34
35
36
|
# File 'lib/pathway/result.rb', line 34
def then(_=nil)
self
end
|