class Array

Public Instance Methods

fully_derived?() click to toggle source
# File lib/derivation_strategy/exhaustive.rb, line 13
def fully_derived?
  not has_nonterminals?
end
has_nonterminals?() click to toggle source
# File lib/derivation_strategy/exhaustive.rb, line 7
def has_nonterminals?
  self.any? do |term|
    term.class == Panini::Nonterminal
  end
end
top() click to toggle source
# File lib/derivation_strategy/exhaustive.rb, line 3
def top
  self.last
end