class ApacheCrunch::RegexToken

A token based on an arbitrary regular expression.

Public Instance Methods

captured?() click to toggle source
# File lib/format_token.rb, line 77
def captured?; true; end
derivation_rule() click to toggle source
# File lib/format_token.rb, line 78
def derivation_rule; NullDerivationRule.new; end
name() click to toggle source
# File lib/format_token.rb, line 75
def name; @_name; end
populate!(regex_name, regex_text) click to toggle source
# File lib/format_token.rb, line 70
def populate!(regex_name, regex_text)
    @_name = "regex_#{regex_name}".to_sym
    @_regex = regex_text
end
regex() click to toggle source
# File lib/format_token.rb, line 76
def regex; @_regex; end