Method: LSystem::ProductionAdapter#make_dispatch_table

Defined in:
lib/l_system/production_adapter.rb

#make_dispatch_tableObject

Return a Hash of symbols to bound Methods to call for their productions from the current #production_map.



140
141
142
143
144
# File 'lib/l_system/production_adapter.rb', line 140

def make_dispatch_table
	return self.class.production_map.each_with_object( {} ) do |(symbol, method_name), hash|
		hash[ symbol ] = self.method( method_name )
	end
end