Class: MarshalParser::Parser::SubclassNode

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(prefix, class_name_node, object_node) ⇒ SubclassNode

Returns a new instance of SubclassNode.



733
734
735
736
737
738
739
740
# File 'lib/marshal-parser/parser.rb', line 733

def initialize(prefix, class_name_node, object_node)
  super()
  assert_token_type prefix, Lexer::SUBCLASS_OF_CORE_LIBRARY_CLASS_PREFIX

  @prefix = prefix
  @class_name_node = class_name_node
  @object_node = object_node
end

Instance Method Details

#child_entitiesObject



742
743
744
# File 'lib/marshal-parser/parser.rb', line 742

def child_entities
  [@prefix, @class_name_node, @object_node]
end