Class: Drudge::Parsers::ParseResults::Empty

Inherits:
Object
  • Object
show all
Includes:
ParseValue
Defined in:
lib/drudge/parsers/parse_results.rb

Instance Method Summary collapse

Methods included from ParseValue

zero

Methods included from FactoryMethods

#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_mapObject



170
171
172
# File 'lib/drudge/parsers/parse_results.rb', line 170

def flat_map
  self
end

#mapObject



166
167
168
# File 'lib/drudge/parsers/parse_results.rb', line 166

def map
  self
end

#to_aObject



178
179
180
# File 'lib/drudge/parsers/parse_results.rb', line 178

def to_a
  []
end