Class: ApacheCrunch::PredefinedToken
- Inherits:
-
FormatToken
- Object
- FormatToken
- ApacheCrunch::PredefinedToken
- Defined in:
- lib/format_token.rb
Overview
A predefined token like %q or %r from the Apache log.
Instance Method Summary collapse
- #captured? ⇒ Boolean
- #derivation_rule ⇒ Object
- #name ⇒ Object
- #populate!(token_definition) ⇒ Object
- #regex ⇒ Object
Instance Method Details
#captured? ⇒ Boolean
25 |
# File 'lib/format_token.rb', line 25 def captured?; @token_definition.captured; end |
#derivation_rule ⇒ Object
26 |
# File 'lib/format_token.rb', line 26 def derivation_rule; @token_definition.derivation_rule; end |
#name ⇒ Object
23 |
# File 'lib/format_token.rb', line 23 def name; @token_definition.name; end |
#populate!(token_definition) ⇒ Object
19 20 21 |
# File 'lib/format_token.rb', line 19 def populate!(token_definition) @token_definition = token_definition end |
#regex ⇒ Object
24 |
# File 'lib/format_token.rb', line 24 def regex; @token_definition.regex; end |