Class: Ruco::Variation

Inherits:
Identifier show all
Defined in:
lib/ruco.rb

Instance Attribute Summary

Attributes inherited from Identifier

#name, #prodset

Instance Method Summary collapse

Methods inherited from Identifier

#initialize

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