Class: Omnium::Parser::AST::Program

Inherits:
Base
  • Object
show all
Defined in:
lib/omnium/parser/ast/program.rb

Overview

Program represents the root node.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name, block) ⇒ Program

Returns a new instance of Program.



10
11
12
13
# File 'lib/omnium/parser/ast/program.rb', line 10

def initialize(name, block)
  @name = name
  @block = block
end

Instance Attribute Details

#blockObject (readonly)

Returns the value of attribute block.



8
9
10
# File 'lib/omnium/parser/ast/program.rb', line 8

def block
  @block
end

#nameObject (readonly)

Returns the value of attribute name.



8
9
10
# File 'lib/omnium/parser/ast/program.rb', line 8

def name
  @name
end