class ApacheCrunch::TokenDictionary

Finds log format elements given information about them.

Public Class Methods

fetch(abbrev) click to toggle source

Returns the FormatToken subclass with the given abbreviation.

If none exists, returns nil.

# File lib/format_token_definition.rb, line 173
def self.fetch(abbrev)
    @@_defs.each do |token_def|
        if token_def.abbrev == abbrev
            return token_def
        end
    end

    nil
end