Class: ApacheCrunch::Format

Inherits:
Object
  • Object
show all
Defined in:
lib/format.rb

Overview

Represents a particular Apache log format

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeFormat

Returns a new instance of Format.



8
9
10
# File 'lib/format.rb', line 8

def initialize
    @tokens = []
end

Instance Attribute Details

#tokensObject

Returns the value of attribute tokens.



6
7
8
# File 'lib/format.rb', line 6

def tokens
  @tokens
end

Instance Method Details

#captured_tokensObject



12
13
14
15
16
# File 'lib/format.rb', line 12

def captured_tokens
    @tokens.find_all do |tok|
        tok.captured?
    end
end