Method: Racc::Rule#each_rule

Defined in:
lib/racc/grammar.rb

#each_rule {|_self| ... } ⇒ Object

Yields:

  • (_self)

Yield Parameters:

  • _self (Racc::Rule)

    the object that the method was called on



636
637
638
639
# File 'lib/racc/grammar.rb', line 636

def each_rule(&block)
  yield self
  @alternatives.each(&block)
end