Ruby on Rails | Screencasts | Download | Documentation | Weblog | Community | Source

Changeset 2463

Show
Ignore:
Timestamp:
10/05/05 01:17:33 (3 years ago)
Author:
minam
Message:

gauge: allow log reader to be queried for current position

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • tools/gauge/lib/gauge/log_reader.rb

    r2462 r2463  
    1010      @wait_duration = options[:wait_duration] 
    1111      super 
     12    end 
     13 
     14    # Return the current position in the input. If there is no log open, this 
     15    # will return +nil+. 
     16    def position 
     17      @io ? @io.pos : nil 
    1218    end 
    1319