Class: RFunk::Success
Instance Method Summary
collapse
Methods inherited from Either
#==, #initialize, #result
Constructor Details
This class inherits a constructor from RFunk::Either
Instance Method Details
#failure? ⇒ Boolean
7
8
9
|
# File 'lib/rfunk/either/success.rb', line 7
def failure?
false
end
|
#key ⇒ Object
15
16
17
|
# File 'lib/rfunk/either/success.rb', line 15
def key
:success
end
|
#or(_) ⇒ Object
11
12
13
|
# File 'lib/rfunk/either/success.rb', line 11
def or(_)
self
end
|
#success? ⇒ Boolean
3
4
5
|
# File 'lib/rfunk/either/success.rb', line 3
def success?
true
end
|