Class: MarshalParser::Parser::VersionNode
- Defined in:
- lib/marshal-parser/parser.rb
Instance Method Summary collapse
- #child_entities ⇒ Object
-
#initialize(version_token) ⇒ VersionNode
constructor
A new instance of VersionNode.
Methods inherited from Node
#always_leaf?, #attributes, #children, #decoded_value, #literal_token, #tokens
Methods included from Assertable
Constructor Details
#initialize(version_token) ⇒ VersionNode
Returns a new instance of VersionNode.
302 303 304 305 306 |
# File 'lib/marshal-parser/parser.rb', line 302 def initialize(version_token) super() assert_token_type version_token, Lexer::VERSION @version_token = version_token end |
Instance Method Details
#child_entities ⇒ Object
308 309 310 |
# File 'lib/marshal-parser/parser.rb', line 308 def child_entities [@version_token] end |