Class: Maybe
- Inherits:
-
Object
- Object
- Maybe
- Defined in:
- lib/possibly.rb
Instance Method Summary collapse
- #==(other) ⇒ Object (also: #eql?)
- #inspect ⇒ Object
- #to_ary ⇒ Object (also: #to_a)
Instance Method Details
#==(other) ⇒ Object Also known as: eql?
16 17 18 |
# File 'lib/possibly.rb', line 16 def ==(other) other.class == self.class end |
#inspect ⇒ Object
21 22 23 |
# File 'lib/possibly.rb', line 21 def inspect to_s end |
#to_ary ⇒ Object Also known as: to_a
11 12 13 |
# File 'lib/possibly.rb', line 11 def to_ary __enumerable_value end |