Module: BME::SimulationClassMethods
- Defined in:
- lib/bme/simulations.rb
Instance Method Summary collapse
Instance Method Details
#run(run_id, aggregator) ⇒ Object
30 31 32 33 34 35 36 37 |
# File 'lib/bme/simulations.rb', line 30 def run(run_id, aggregator) batch.each do |*args| s = new s.send(:setup, run_id, aggregator, *args) s.send(:run) s end end |
#steps ⇒ Object
26 27 28 |
# File 'lib/bme/simulations.rb', line 26 def steps instance_methods.map { |m| m[/^simulate_(.*)/, 1] }.compact end |