Class: ApacheCrunch::Format
- Inherits:
-
Object
- Object
- ApacheCrunch::Format
- Defined in:
- lib/format.rb
Overview
Represents a particular Apache log format
Instance Attribute Summary collapse
-
#tokens ⇒ Object
Returns the value of attribute tokens.
Instance Method Summary collapse
- #captured_tokens ⇒ Object
-
#initialize ⇒ Format
constructor
A new instance of Format.
Constructor Details
#initialize ⇒ Format
Returns a new instance of Format.
8 9 10 |
# File 'lib/format.rb', line 8 def initialize @tokens = [] end |
Instance Attribute Details
#tokens ⇒ Object
Returns the value of attribute tokens.
6 7 8 |
# File 'lib/format.rb', line 6 def tokens @tokens end |
Instance Method Details
#captured_tokens ⇒ Object
12 13 14 15 16 |
# File 'lib/format.rb', line 12 def captured_tokens @tokens.find_all do |tok| tok.captured? end end |