Class: Layo::Ast::Program
- Defined in:
- lib/layo/ast/program.rb
Instance Attribute Summary collapse
-
#block ⇒ Object
readonly
Returns the value of attribute block.
-
#version ⇒ Object
readonly
Returns the value of attribute version.
Instance Method Summary collapse
-
#initialize(version, block) ⇒ Program
constructor
A new instance of Program.
Constructor Details
#initialize(version, block) ⇒ Program
Returns a new instance of Program.
5 6 7 |
# File 'lib/layo/ast/program.rb', line 5 def initialize(version, block) @version, @block = version, block end |
Instance Attribute Details
#block ⇒ Object (readonly)
Returns the value of attribute block.
3 4 5 |
# File 'lib/layo/ast/program.rb', line 3 def block @block end |
#version ⇒ Object (readonly)
Returns the value of attribute version.
3 4 5 |
# File 'lib/layo/ast/program.rb', line 3 def version @version end |