Class: Ramda::Internal::Functors::Maybe::None
- Inherits:
-
Object
- Object
- Ramda::Internal::Functors::Maybe::None
- Defined in:
- lib/ramda/internal/functors.rb
Overview
None value
Instance Attribute Summary collapse
-
#value ⇒ Object
readonly
Returns the value of attribute value.
Instance Method Summary collapse
- #==(other) ⇒ Object
- #ap(_m) ⇒ Object
- #chain(_f) ⇒ Object
-
#initialize ⇒ None
constructor
A new instance of None.
- #map(_f) ⇒ Object
- #none? ⇒ Boolean
- #some? ⇒ Boolean
Constructor Details
#initialize ⇒ None
Returns a new instance of None.
86 |
# File 'lib/ramda/internal/functors.rb', line 86 def initialize(*); end |
Instance Attribute Details
#value ⇒ Object (readonly)
Returns the value of attribute value.
84 85 86 |
# File 'lib/ramda/internal/functors.rb', line 84 def value @value end |
Instance Method Details
#==(other) ⇒ Object
88 89 90 |
# File 'lib/ramda/internal/functors.rb', line 88 def ==(other) instance_of?(other.class) end |
#ap(_m) ⇒ Object
92 93 94 |
# File 'lib/ramda/internal/functors.rb', line 92 def ap(_m) self end |
#chain(_f) ⇒ Object
96 97 98 |
# File 'lib/ramda/internal/functors.rb', line 96 def chain(_f) self end |
#map(_f) ⇒ Object
100 101 102 |
# File 'lib/ramda/internal/functors.rb', line 100 def map(_f) self end |
#none? ⇒ Boolean
104 105 106 |
# File 'lib/ramda/internal/functors.rb', line 104 def none? true end |
#some? ⇒ Boolean
108 109 110 |
# File 'lib/ramda/internal/functors.rb', line 108 def some? false end |