Class: Drudge::Parsers::ParseResults::Empty
- Inherits:
-
Object
- Object
- Drudge::Parsers::ParseResults::Empty
show all
- Includes:
- ParseValue
- Defined in:
- lib/drudge/parsers/parse_results.rb
Instance Method Summary
collapse
Methods included from ParseValue
zero
#Empty, #Error, #Failure, #Seq, #Single, #Success
Instance Method Details
#+(other) ⇒ Object
174
175
176
|
# File 'lib/drudge/parsers/parse_results.rb', line 174
def +(other)
other
end
|
#==(other) ⇒ Object
Also known as:
eql?
182
183
184
|
# File 'lib/drudge/parsers/parse_results.rb', line 182
def ==(other)
Empty === other
end
|
#flat_map ⇒ Object
170
171
172
|
# File 'lib/drudge/parsers/parse_results.rb', line 170
def flat_map
self
end
|
#map ⇒ Object
166
167
168
|
# File 'lib/drudge/parsers/parse_results.rb', line 166
def map
self
end
|
#to_a ⇒ Object
178
179
180
|
# File 'lib/drudge/parsers/parse_results.rb', line 178
def to_a
[]
end
|