Class: Deterministic::Option::None
Instance Method Summary
collapse
#+, any?, #none?, #some?, some?, to_option, try!, #value_or, #value_to_a
#match
Methods included from Monad
#bind, #join, #to_s, #value
Constructor Details
#initialize(*args) ⇒ None
Returns a new instance of None.
83
84
85
|
# File 'lib/deterministic/option.rb', line 83
def initialize(*args)
@value = self
end
|
Instance Method Details
#==(other) ⇒ Object
99
100
101
|
# File 'lib/deterministic/option.rb', line 99
def ==(other)
other.class == self.class
end
|
#fmap(*args) ⇒ Object
Also known as:
map
93
94
95
|
# File 'lib/deterministic/option.rb', line 93
def fmap(*args)
self
end
|
87
88
89
|
# File 'lib/deterministic/option.rb', line 87
def inspect
"None"
end
|