Class: ApacheCrunch::PredefinedToken

Inherits:
FormatToken show all
Defined in:
lib/format_token.rb

Overview

A predefined token like %q or %r from the Apache log.

Instance Method Summary collapse

Instance Method Details

#captured?Boolean

Returns:

  • (Boolean)


25
# File 'lib/format_token.rb', line 25

def captured?; @token_definition.captured; end

#derivation_ruleObject



26
# File 'lib/format_token.rb', line 26

def derivation_rule; @token_definition.derivation_rule; end

#nameObject



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

#regexObject



24
# File 'lib/format_token.rb', line 24

def regex; @token_definition.regex; end