Class: Operator

Inherits:
Object show all
Includes:
TeguGears
Defined in:
lib/tegu_gears/dynamics/noodle.rb,
lib/tegu_gears/dynamics/operator.rb

Constant Summary

Constants included from TeguGears

TeguGears::REPOSITORY_CLASS

Instance Method Summary collapse

Methods included from TeguGears

included

Instance Method Details

#processObject

Auto-collects the in-nodes, multiplying what should be multiplied



28
29
30
31
# File 'lib/tegu_gears/dynamics/noodle.rb', line 28

def process
  
  args.inject { |sum, e| sum + e }
end