Class: Ruco::Production
Direct Known Subclasses
Instance Attribute Summary collapse
-
#prodset ⇒ Object
Returns the value of attribute prodset.
-
#prodtype ⇒ Object
Returns the value of attribute prodtype.
Instance Method Summary collapse
-
#initialize(name, prodtype = :normal) ⇒ Production
constructor
A new instance of Production.
Methods inherited from Group
#convert_thing, #either, #generate, #grammar_tree, #group, #group_type, #many, #maybe, #maybemany, #multiply, #one, #sync
Constructor Details
#initialize(name, prodtype = :normal) ⇒ Production
Returns a new instance of Production.
219 220 221 222 223 224 |
# File 'lib/ruco.rb', line 219 def initialize(name, prodtype=:normal) @prodtype = prodtype @name = name super() end |
Instance Attribute Details
#prodset ⇒ Object
Returns the value of attribute prodset.
217 218 219 |
# File 'lib/ruco.rb', line 217 def prodset @prodset end |
#prodtype ⇒ Object
Returns the value of attribute prodtype.
217 218 219 |
# File 'lib/ruco.rb', line 217 def prodtype @prodtype end |