Sha256: f027c272b857e34cf23c368605237947fae2a5d1d766027fe8db81a1adbaf9df
Contents?: true
Size: 342 Bytes
Versions: 6
Compression:
Stored size: 342 Bytes
Contents
module Shutterbug class BugFile def initialize(filename) @filename = filename end def open @stream_file = File.open(@filename, 'r') @stream_file.rewind end def each(&blk) @stream_file.each(&blk) ensure @stream_file.close end def size @stream_file.size end end end
Version data entries
6 entries across 6 versions & 1 rubygems