Class: ApacheCrunch::Each

Inherits:
ProcedureRoutine show all
Defined in:
lib/procedure_dsl.rb

Overview

DSL routine that executes the block for every log entry

Instance Method Summary collapse

Methods inherited from ProcedureRoutine

#finish, #initialize, #method_missing

Constructor Details

This class inherits a constructor from ApacheCrunch::ProcedureRoutine

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class ApacheCrunch::ProcedureRoutine

Instance Method Details

#execute(&blk) ⇒ Object



47
48
49
50
51
# File 'lib/procedure_dsl.rb', line 47

def execute(&blk)
    while @_current_entry = @_log_parser.next_entry
        instance_eval(&blk)
    end
end