class ApacheCrunch::StringToken
A bare string in a log format.
Public Instance Methods
captured?()
click to toggle source
# File lib/format_token.rb, line 45 def captured?; false; end
derivation_rule()
click to toggle source
# File lib/format_token.rb, line 46 def derivation_rule; NullDerivationRule.new; end
name()
click to toggle source
# File lib/format_token.rb, line 37 def name; nil; end
populate!(string_value)
click to toggle source
Initializes the instance given the string it represents
# File lib/format_token.rb, line 33 def populate!(string_value) @_string_value = string_value end
regex()
click to toggle source
# File lib/format_token.rb, line 39 def regex # Make sure there aren't any regex special characters in the string that will confuse # the parsing later. Regexp.escape(@_string_value) end