Class: Array
- Inherits:
-
Object
- Object
- Array
- Defined in:
- lib/derivation_strategy/exhaustive.rb
Instance Method Summary collapse
Instance Method Details
#fully_derived? ⇒ Boolean
13 14 15 |
# File 'lib/derivation_strategy/exhaustive.rb', line 13 def fully_derived? not has_nonterminals? end |
#has_nonterminals? ⇒ Boolean
7 8 9 10 11 |
# File 'lib/derivation_strategy/exhaustive.rb', line 7 def has_nonterminals? self.any? do |term| term.class == Panini::Nonterminal end end |
#top ⇒ Object
3 4 5 |
# File 'lib/derivation_strategy/exhaustive.rb', line 3 def top self.last end |