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.
122 123 124 |
# File 'lib/crokus/ast.rb', line 122 def initialize type,var,init=nil @var,@type,@init=var,type,init end |
Instance Attribute Details
#init ⇒ Object
Returns the value of attribute init.
121 122 123 |
# File 'lib/crokus/ast.rb', line 121 def init @init end |
#type ⇒ Object
Returns the value of attribute type.
121 122 123 |
# File 'lib/crokus/ast.rb', line 121 def type @type end |
#var ⇒ Object
Returns the value of attribute var.
121 122 123 |
# File 'lib/crokus/ast.rb', line 121 def var @var end |