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.
Class Method Summary collapse
Instance Method Summary collapse
- #==(other) ⇒ Object
- #ap(_m) ⇒ Object
- #chain(_f) ⇒ Object
- #map(_f) ⇒ Object
- #none? ⇒ Boolean
- #some? ⇒ Boolean
Instance Attribute Details
#value ⇒ Object (readonly)
Returns the value of attribute value.
88 89 90 |
# File 'lib/ramda/internal/functors.rb', line 88 def value @value end |
Class Method Details
.new ⇒ Object
93 94 95 |
# File 'lib/ramda/internal/functors.rb', line 93 def new @instance ||= orig_new end |
.orig_new ⇒ Object
91 |
# File 'lib/ramda/internal/functors.rb', line 91 alias orig_new new |
Instance Method Details
#==(other) ⇒ Object
98 99 100 |
# File 'lib/ramda/internal/functors.rb', line 98 def ==(other) instance_of?(other.class) end |
#ap(_m) ⇒ Object
102 103 104 |
# File 'lib/ramda/internal/functors.rb', line 102 def ap(_m) self end |
#chain(_f) ⇒ Object
106 107 108 |
# File 'lib/ramda/internal/functors.rb', line 106 def chain(_f) self end |
#map(_f) ⇒ Object
110 111 112 |
# File 'lib/ramda/internal/functors.rb', line 110 def map(_f) self end |
#none? ⇒ Boolean
114 115 116 |
# File 'lib/ramda/internal/functors.rb', line 114 def none? true end |
#some? ⇒ Boolean
118 119 120 |
# File 'lib/ramda/internal/functors.rb', line 118 def some? false end |