Class: Ruco::Variation
- Inherits:
-
Identifier
- Object
- Identifier
- Ruco::Variation
- Defined in:
- lib/ruco.rb
Instance Attribute Summary
Attributes inherited from Identifier
Instance Method Summary collapse
Methods inherited from Identifier
Constructor Details
This class inherits a constructor from Ruco::Identifier
Instance Method Details
#generate(indent = 0) ⇒ Object
62 63 64 65 |
# File 'lib/ruco.rb', line 62 def generate(indent=0) code = "production = #{name.downcase};" "#{("\t"*indent)}#{name}<#{name.downcase}> (. #{code} .)" end |