class Rubasteme::AST::LeafNode

Attributes

literal[R]

Public Class Methods

new(literal) click to toggle source
Calls superclass method Rubasteme::AST::Node::new
# File lib/rubasteme/ast/leaf_node.rb, line 7
def initialize(literal)
  super
  @literal = literal
end

Public Instance Methods

to_a() click to toggle source
# File lib/rubasteme/ast/leaf_node.rb, line 14
def to_a
  [type, @literal]
end