Module: Option::None
- Defined in:
- lib/trither/option.rb
Class Method Summary collapse
Class Method Details
.empty? ⇒ Boolean
11 12 13 |
# File 'lib/trither/option.rb', line 11 def self.empty? true end |
.fetch(default) ⇒ Object
15 16 17 |
# File 'lib/trither/option.rb', line 15 def self.fetch(default) default end |
.flat_map ⇒ Object
23 24 25 |
# File 'lib/trither/option.rb', line 23 def self.flat_map self end |
.get_or_else ⇒ Object
27 28 29 |
# File 'lib/trither/option.rb', line 27 def self.get_or_else yield end |
.map ⇒ Object
19 20 21 |
# File 'lib/trither/option.rb', line 19 def self.map self end |