Class: RFunk::Either
- Inherits:
-
Object
- Object
- RFunk::Either
- Defined in:
- lib/rfunk/either/either.rb
Instance Method Summary collapse
- #==(other) ⇒ Object
-
#initialize(value) ⇒ Either
constructor
A new instance of Either.
- #result ⇒ Object
Constructor Details
#initialize(value) ⇒ Either
Returns a new instance of Either.
3 4 5 |
# File 'lib/rfunk/either/either.rb', line 3 def initialize(value) @value = value end |
Instance Method Details
#==(other) ⇒ Object
16 17 18 |
# File 'lib/rfunk/either/either.rb', line 16 def ==(other) other.result == result end |