Class: Rubasteme::AST::IllegalNode
Instance Method Summary collapse
-
#initialize(type, literal) ⇒ IllegalNode
constructor
A new instance of IllegalNode.
- #to_a ⇒ Object
Methods inherited from Node
Constructor Details
#initialize(type, literal) ⇒ IllegalNode
Returns a new instance of IllegalNode.
91 92 93 94 95 |
# File 'lib/rubasteme/ast.rb', line 91 def initialize(type, literal) super(literal) @given_type = type @literal = literal end |
Instance Method Details
#to_a ⇒ Object
97 98 99 |
# File 'lib/rubasteme/ast.rb', line 97 def to_a [type, @given_type, @literal] end |