class UniversalAccessLogParser::ElementGroup::Element
Attributes
name[R]
parser[R]
Public Class Methods
new(name, regexp, nil_on = nil) { |s| ... }
click to toggle source
# File lib/universal-access-log-parser.rb, line 28 def initialize(name, regexp, nil_on = nil) @name = name @regexp = regexp @nil_on = nil_on @parser = lambda{|s| return nil if @nil_on and s == @nil_on yield s if block_given? } end
Public Instance Methods
regexp()
click to toggle source
# File lib/universal-access-log-parser.rb, line 40 def regexp return "(#{@nil_on}|#{@regexp})" if @nil_on "(#{@regexp})" end