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 105 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 110 def match(exp, unmatched) @value === exp end