Class: Omnium::Parser::AST::Program
- Defined in:
- lib/omnium/parser/ast/program.rb
Overview
Program represents the root node.
Instance Attribute Summary collapse
-
#block ⇒ Object
readonly
Returns the value of attribute block.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
Instance Method Summary collapse
-
#initialize(name, block) ⇒ Program
constructor
A new instance of Program.
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
#block ⇒ Object (readonly)
Returns the value of attribute block.
8 9 10 |
# File 'lib/omnium/parser/ast/program.rb', line 8 def block @block end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
8 9 10 |
# File 'lib/omnium/parser/ast/program.rb', line 8 def name @name end |