Class: MarshalParser::Parser::VersionNode

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

Instance Method Summary collapse

Methods inherited from Node

#always_leaf?, #attributes, #children, #decoded_value, #literal_token, #tokens

Methods included from Assertable

#assert

Constructor Details

#initialize(version_token) ⇒ VersionNode

Returns a new instance of VersionNode.



302
303
304
305
306
# File 'lib/marshal-parser/parser.rb', line 302

def initialize(version_token)
  super()
  assert_token_type version_token, Lexer::VERSION
  @version_token = version_token
end

Instance Method Details

#child_entitiesObject



308
309
310
# File 'lib/marshal-parser/parser.rb', line 308

def child_entities
  [@version_token]
end