Class: Maybe::Nothing
Instance Method Summary collapse
Methods included from Shared
Instance Method Details
#flat_map(&block) ⇒ Object
69 70 71 |
# File 'lib/maybe.rb', line 69 def flat_map(&block) self end |
#is_just? ⇒ Boolean
58 59 60 |
# File 'lib/maybe.rb', line 58 def is_just? false end |
#is_nothing? ⇒ Boolean
61 62 63 |
# File 'lib/maybe.rb', line 61 def is_nothing? true end |
#map(&block) ⇒ Object
65 66 67 |
# File 'lib/maybe.rb', line 65 def map(&block) self end |