class Temple::Mixins::GrammarDSL::Value
Public Class Methods
new(grammar, value)
click to toggle source
Calls superclass method
Temple::Mixins::GrammarDSL::Rule.new
# File lib/temple/mixins/grammar_dsl.rb, line 103 def initialize(grammar, value) super(grammar) @value = value end
Public Instance Methods
match(exp, unmatched)
click to toggle source
# File lib/temple/mixins/grammar_dsl.rb, line 108 def match(exp, unmatched) @value === exp end