Class: Function
- Inherits:
-
NodeEntityAbstract
- Object
- ActiveRecord::Base
- NodeEntityAbstract
- Function
- Defined in:
- app/models/function.rb
Instance Method Summary collapse
Methods inherited from NodeEntityAbstract
_find, #attributes=, find, #initialize, #node
Constructor Details
This class inherits a constructor from NodeEntityAbstract
Instance Method Details
#get_script ⇒ Object
11 12 13 14 15 16 17 18 19 |
# File 'app/models/function.rb', line 11 def get_script result = "" function_arguments.length.times{|i| arg = function_arguments[i] result += " arg#{i} = arg#{i}.#{to_type(arg.name)}\n" } result += script return result end |