Class: Ramda::Internal::Functors::Maybe::None

Inherits:
Object
  • Object
show all
Defined in:
lib/ramda/internal/functors.rb

Overview

None value

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#valueObject (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

.newObject



93
94
95
# File 'lib/ramda/internal/functors.rb', line 93

def new
  @instance ||= orig_new
end

.orig_newObject



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

Returns:

  • (Boolean)


114
115
116
# File 'lib/ramda/internal/functors.rb', line 114

def none?
  true
end

#some?Boolean

Returns:

  • (Boolean)


118
119
120
# File 'lib/ramda/internal/functors.rb', line 118

def some?
  false
end