Method: Sequitur::Production#references_of
- Defined in:
- lib/sequitur/production.rb
#references_of(a_prod) ⇒ Array
Look in the rhs all the references to a production passed a argument. aProduction [aProduction or ProductionRef] The production to search for.
76 77 78 79 |
# File 'lib/sequitur/production.rb', line 76 def references_of(a_prod) real_prod = a_prod.is_a?(ProductionRef) ? a_prod.production : a_prod return rhs.references_of(real_prod) end |