Class: Crokus::Function
Instance Attribute Summary collapse
-
#args ⇒ Object
Returns the value of attribute args.
-
#body ⇒ Object
Returns the value of attribute body.
-
#cfg ⇒ Object
Returns the value of attribute cfg.
-
#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 = [], body = nil) ⇒ Function
constructor
A new instance of Function.
Methods inherited from Ast
Constructor Details
#initialize(name, ret_type, args = [], body = nil) ⇒ Function
Returns a new instance of Function.
137 138 139 140 141 |
# File 'lib/crokus/ast.rb', line 137 def initialize name,ret_type,args=[],body=nil @name,@type=name,ret_type @args=args @body=body if body end |
Instance Attribute Details
#args ⇒ Object
Returns the value of attribute args.
135 136 137 |
# File 'lib/crokus/ast.rb', line 135 def args @args end |
#body ⇒ Object
Returns the value of attribute body.
135 136 137 |
# File 'lib/crokus/ast.rb', line 135 def body @body end |
#cfg ⇒ Object
Returns the value of attribute cfg.
136 137 138 |
# File 'lib/crokus/ast.rb', line 136 def cfg @cfg end |
#name ⇒ Object
Returns the value of attribute name.
135 136 137 |
# File 'lib/crokus/ast.rb', line 135 def name @name end |
#type ⇒ Object
Returns the value of attribute type.
135 136 137 |
# File 'lib/crokus/ast.rb', line 135 def type @type end |