Class: Function

Inherits:
NodeEntityAbstract show all
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_scriptObject



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