Class: Layo::Ast::Statement

Inherits:
Node
  • Object
show all
Defined in:
lib/layo/ast/statement.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#typeObject

Returns the value of attribute type.



3
4
5
# File 'lib/layo/ast/statement.rb', line 3

def type
  @type
end