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.
133 134 135 136 137 |
# File 'lib/crokus/ast.rb', line 133 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.
131 132 133 |
# File 'lib/crokus/ast.rb', line 131 def args @args end |
#body ⇒ Object
Returns the value of attribute body.
131 132 133 |
# File 'lib/crokus/ast.rb', line 131 def body @body end |
#cfg ⇒ Object
Returns the value of attribute cfg.
132 133 134 |
# File 'lib/crokus/ast.rb', line 132 def cfg @cfg end |
#name ⇒ Object
Returns the value of attribute name.
131 132 133 |
# File 'lib/crokus/ast.rb', line 131 def name @name end |
#type ⇒ Object
Returns the value of attribute type.
131 132 133 |
# File 'lib/crokus/ast.rb', line 131 def type @type end |