Class: Layo::Ast::Statement
- Defined in:
- lib/layo/ast/statement.rb
Instance Attribute Summary collapse
-
#type ⇒ Object
Returns the value of attribute type.
Instance Method Summary collapse
-
#initialize(type, args = {}) ⇒ Statement
constructor
A new instance of Statement.
Constructor Details
#initialize(type, args = {}) ⇒ Statement
Returns a new instance of Statement.
5 6 7 8 |
# File 'lib/layo/ast/statement.rb', line 5 def initialize(type, args = {}) @type = type super(args) end |
Instance Attribute Details
#type ⇒ Object
Returns the value of attribute type.
3 4 5 |
# File 'lib/layo/ast/statement.rb', line 3 def type @type end |