Class: MarshalParser::Parser::FalseNode

Inherits:
Node
  • Object
show all
Defined in:
lib/marshal-parser/parser.rb

Instance Method Summary collapse

Methods inherited from Node

#attributes, #children, #decoded_value, #literal_token, #tokens

Methods included from Assertable

#assert

Constructor Details

#initialize(token) ⇒ FalseNode

Returns a new instance of FalseNode.



440
441
442
443
444
# File 'lib/marshal-parser/parser.rb', line 440

def initialize(token)
  super()
  assert_token_type token, Lexer::FALSE
  @token = token
end

Instance Method Details

#always_leaf?Boolean

Returns:

  • (Boolean)


450
451
452
# File 'lib/marshal-parser/parser.rb', line 450

def always_leaf?
  true
end

#child_entitiesObject



446
447
448
# File 'lib/marshal-parser/parser.rb', line 446

def child_entities
  [@token]
end