Temple::Mixins::GrammarDSL::Or
# File lib/temple/mixins/grammar_dsl.rb, line 83 def initialize(grammar, rule) super(grammar) @rule = grammar.Rule(rule) end
# File lib/temple/mixins/grammar_dsl.rb, line 94 def after_copy(source) @children = @children.map do |child| child == source ? self : child.copy_to(@grammar) end @rule = @rule.copy_to(@grammar) end
# File lib/temple/mixins/grammar_dsl.rb, line 88 def match(exp, unmatched) return false unless Array === exp && !exp.empty? head, *tail = exp @rule.match(head, unmatched) && super(tail, unmatched) end
[Validate]
Generated with the Darkfish Rdoc Generator 2.