Class: MarshalParser::Parser::ObjectWithMarshalDumpMethod

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, child_node) ⇒ ObjectWithMarshalDumpMethod

Returns a new instance of ObjectWithMarshalDumpMethod.



852
853
854
855
856
857
858
859
# File 'lib/marshal-parser/parser.rb', line 852

def initialize(prefix, class_name_node, child_node)
  super()
  assert_token_type prefix, Lexer::OBJECT_WITH_MARSHAL_DUMP_PREFIX

  @prefix = prefix
  @class_name_node = class_name_node
  @child_node = child_node
end

Instance Method Details

#child_entitiesObject



861
862
863
# File 'lib/marshal-parser/parser.rb', line 861

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