Method: LSystem::RulesEngine#constants
- Defined in:
- lib/l_system/rules_engine.rb
#constants(*new_values) ⇒ Object
Get/set the system’s constants (the static parts of its alphabet).
64 65 66 67 |
# File 'lib/l_system/rules_engine.rb', line 64 def constants( *new_values ) self.constants = new_values unless new_values.empty? return @constants.dup end |