Module: BME::SimulationExtension
- Defined in:
- lib/bme/simulations.rb
Instance Method Summary collapse
Instance Method Details
#simulation(label = name, &blk) ⇒ Object
65 66 67 68 69 70 71 72 73 74 75 76 77 |
# File 'lib/bme/simulations.rb', line 65 def simulation(label = name, &blk) Simulation.add(self) define_singleton_method(:batch, &blk) define_singleton_method(:label) { label } extend SimulationClassMethods include SimulationInstanceMethods Simulation.helpers.each do |h| include h end end |