Class: Nothing
Instance Method Summary collapse
Instance Method Details
#nothing? ⇒ Boolean
6 7 8 |
# File 'lib/just_maybe/nothing.rb', line 6 def nothing? true end |
#something? ⇒ Boolean
10 11 12 |
# File 'lib/just_maybe/nothing.rb', line 10 def something? false end |
#to_s ⇒ Object
17 18 19 |
# File 'lib/just_maybe/nothing.rb', line 17 def to_s "Nothing" end |
#try ⇒ Object
14 15 |
# File 'lib/just_maybe/nothing.rb', line 14 def try end |