Class: Crokus::Decl
Overview
.….….…..end of types.….….….….
Instance Attribute Summary collapse
-
#init ⇒ Object
Returns the value of attribute init.
-
#type ⇒ Object
Returns the value of attribute type.
-
#var ⇒ Object
Returns the value of attribute var.
Instance Method Summary collapse
-
#initialize(type, var, init = nil) ⇒ Decl
constructor
A new instance of Decl.
Methods inherited from Ast
Constructor Details
#initialize(type, var, init = nil) ⇒ Decl
Returns a new instance of Decl.
118 119 120 |
# File 'lib/crokus/ast.rb', line 118 def initialize type,var,init=nil @var,@type,@init=var,type,init end |
Instance Attribute Details
#init ⇒ Object
Returns the value of attribute init.
117 118 119 |
# File 'lib/crokus/ast.rb', line 117 def init @init end |
#type ⇒ Object
Returns the value of attribute type.
117 118 119 |
# File 'lib/crokus/ast.rb', line 117 def type @type end |
#var ⇒ Object
Returns the value of attribute var.
117 118 119 |
# File 'lib/crokus/ast.rb', line 117 def var @var end |