Class: Optiomist::None
Overview
There is no value.
Example:
>> result = Optiomist.none
>> result.none?
=> true
Instance Method Summary collapse
-
#nil? ⇒ Boolean
Should it really respond to
nil?
. -
#none? ⇒ Boolean
It’s
true
. -
#some? ⇒ Boolean
It’s
false
.
Instance Method Details
#nil? ⇒ Boolean
Should it really respond to nil?
45 46 47 |
# File 'lib/optiomist.rb', line 45 def nil? true end |
#none? ⇒ Boolean
It’s true
.
55 56 57 |
# File 'lib/optiomist.rb', line 55 def none? true end |
#some? ⇒ Boolean
It’s false
.
50 51 52 |
# File 'lib/optiomist.rb', line 50 def some? false end |