Class: Rubasteme::AST::IllegalNode

Inherits:
Node
  • Object
show all
Defined in:
lib/rubasteme/ast.rb

Instance Method Summary collapse

Methods inherited from Node

#to_s, #type

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_aObject



97
98
99
# File 'lib/rubasteme/ast.rb', line 97

def to_a
  [type, @given_type, @literal]
end