Method: LSystem::ProductionAdapter.on_start
- Defined in:
- lib/l_system/production_adapter.rb
.on_start(&block) ⇒ Object
Register a callback that will be called at the start of each new generation. It will be called with the result of the last generation, or nil if this is the 0th (axiom) generation.
53 54 55 56 |
# File 'lib/l_system/production_adapter.rb', line 53 def self::on_start( &block ) self.log.debug "Declaring on_start callback: %p" % [ block ] define_method( :on_start, &block ) end |