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

Instance Method Summary collapse

Constructor Details

#initializeNone

Returns a new instance of None.



86
# File 'lib/ramda/internal/functors.rb', line 86

def initialize(*); end

Instance Attribute Details

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

Returns:

  • (Boolean)


104
105
106
# File 'lib/ramda/internal/functors.rb', line 104

def none?
  true
end

#some?Boolean

Returns:

  • (Boolean)


108
109
110
# File 'lib/ramda/internal/functors.rb', line 108

def some?
  false
end