Class: Ruco::Production

Inherits:
Group
  • Object
show all
Defined in:
lib/ruco.rb

Direct Known Subclasses

Ruco

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#prodsetObject

Returns the value of attribute prodset.



217
218
219
# File 'lib/ruco.rb', line 217

def prodset
  @prodset
end

#prodtypeObject

Returns the value of attribute prodtype.



217
218
219
# File 'lib/ruco.rb', line 217

def prodtype
  @prodtype
end