Class: MarshalParser::Parser::ObjectWithMarshalDumpMethod
- Defined in:
- lib/marshal-parser/parser.rb
Instance Method Summary collapse
- #child_entities ⇒ Object
-
#initialize(prefix, class_name_node, child_node) ⇒ ObjectWithMarshalDumpMethod
constructor
A new instance of ObjectWithMarshalDumpMethod.
Methods inherited from Node
#always_leaf?, #attributes, #children, #decoded_value, #literal_token, #tokens
Methods included from Assertable
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_entities ⇒ Object
861 862 863 |
# File 'lib/marshal-parser/parser.rb', line 861 def child_entities [@prefix, @class_name_node, @child_node] end |