Class: Crokus::FunctionProto
Instance Attribute Summary collapse
-
#args ⇒ Object
Returns the value of attribute args.
-
#name ⇒ Object
Returns the value of attribute name.
-
#type ⇒ Object
Returns the value of attribute type.
Instance Method Summary collapse
-
#initialize(name, ret_type, args = []) ⇒ FunctionProto
constructor
A new instance of FunctionProto.
Methods inherited from Ast
Constructor Details
#initialize(name, ret_type, args = []) ⇒ FunctionProto
Returns a new instance of FunctionProto.
142 143 144 145 |
# File 'lib/crokus/ast.rb', line 142 def initialize name,ret_type,args=[] @name,@type=name,ret_type @args=args end |
Instance Attribute Details
#args ⇒ Object
Returns the value of attribute args.
141 142 143 |
# File 'lib/crokus/ast.rb', line 141 def args @args end |
#name ⇒ Object
Returns the value of attribute name.
141 142 143 |
# File 'lib/crokus/ast.rb', line 141 def name @name end |
#type ⇒ Object
Returns the value of attribute type.
141 142 143 |
# File 'lib/crokus/ast.rb', line 141 def type @type end |