Method: Ccdk::LogFile#each_block
- Defined in:
- lib/ccdk/log_file.rb
#each_block ⇒ Object
execute code on each block of the log file. A block is defined as starting with Processing and ending with a blank line
Examples
log.each_block{ |b| puts b if b =~ ApplicationController }
47 48 49 50 51 |
# File 'lib/ccdk/log_file.rb', line 47 def each_block while !@fh.eof? yield next_block end end |