class ApacheCrunch::CountWhere
DSL routine that returns the number of log entries where the block evaluates to true
Public Instance Methods
execute(&blk)
click to toggle source
# File lib/procedure_dsl.rb, line 33 def execute(&blk) count = 0 while @_current_entry = @_log_parser.next_entry if instance_eval(&blk) count += 1 end end count end