Class: MarshalParser::Parser::Node
- Inherits:
-
Object
- Object
- MarshalParser::Parser::Node
show all
- Includes:
- Assertable
- Defined in:
- lib/marshal-parser/parser.rb
Direct Known Subclasses
ArrayNode, BigIntegerNode, ClassNode, FalseNode, FloatNode, HashNode, HashWithDefaultValueNode, IntegerNode, ModuleNode, NilNode, ObjectExtendedNode, ObjectLinkNode, ObjectNode, ObjectWithDumpMethodNode, ObjectWithIVarsNode, ObjectWithMarshalDumpMethod, RegexpNode, StringNode, StructNode, SubclassNode, SymbolLinkNode, SymbolNode, TrueNode, VersionNode
Instance Method Summary
collapse
Methods included from Assertable
#assert
Instance Method Details
#always_leaf? ⇒ Boolean
287
288
289
|
# File 'lib/marshal-parser/parser.rb', line 287
def always_leaf?
false
end
|
#attributes ⇒ Object
283
284
285
|
# File 'lib/marshal-parser/parser.rb', line 283
def attributes
{}
end
|
#child_entities ⇒ Object
263
264
265
|
# File 'lib/marshal-parser/parser.rb', line 263
def child_entities
raise "Not implemented"
end
|
#children ⇒ Object
271
272
273
|
# File 'lib/marshal-parser/parser.rb', line 271
def children
child_entities.grep(Node)
end
|
#decoded_value ⇒ Object
275
276
277
|
# File 'lib/marshal-parser/parser.rb', line 275
def decoded_value
nil
end
|
#literal_token ⇒ Object
279
280
281
|
# File 'lib/marshal-parser/parser.rb', line 279
def literal_token
nil
end
|
#tokens ⇒ Object
267
268
269
|
# File 'lib/marshal-parser/parser.rb', line 267
def tokens
child_entities.grep(Lexer::Token)
end
|