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