Class: Crokus::FormalArg
Instance Attribute Summary collapse
-
#name ⇒ Object
Returns the value of attribute name.
-
#type ⇒ Object
Returns the value of attribute type.
Instance Method Summary collapse
-
#initialize(t, n) ⇒ FormalArg
constructor
A new instance of FormalArg.
Methods inherited from Ast
Constructor Details
#initialize(t, n) ⇒ FormalArg
Returns a new instance of FormalArg.
161 162 163 |
# File 'lib/crokus/ast.rb', line 161 def initialize t,n @name,@type=n,t end |
Instance Attribute Details
#name ⇒ Object
Returns the value of attribute name.
160 161 162 |
# File 'lib/crokus/ast.rb', line 160 def name @name end |
#type ⇒ Object
Returns the value of attribute type.
160 161 162 |
# File 'lib/crokus/ast.rb', line 160 def type @type end |