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.
157 158 159 |
# File 'lib/crokus/ast.rb', line 157 def initialize t,n @name,@type=n,t end |
Instance Attribute Details
#name ⇒ Object
Returns the value of attribute name.
156 157 158 |
# File 'lib/crokus/ast.rb', line 156 def name @name end |
#type ⇒ Object
Returns the value of attribute type.
156 157 158 |
# File 'lib/crokus/ast.rb', line 156 def type @type end |