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