Sha256: 9274da1d604423661d99deb5387fbba35a7ef700112f34f00f89b95970c9c1bb

Contents?: true

Size: 431 Bytes

Versions: 110

Compression:

Stored size: 431 Bytes

Contents

require File.dirname(__FILE__) + '/spec_helper'
class FileAccessor
  def open_and_handle_with(pathname, processor)
    pathname.open do |io|
      processor.process(io)
    end
  end
end

if __FILE__ == $0
  require File.dirname(__FILE__) + '/io_processor'
  require 'pathname'
  
  accessor = FileAccessor.new
  io_processor = IoProcessor.new
  file = Pathname.new ARGV[0]

  accessor.open_and_handle_with(file, io_processor)
end

Version data entries

110 entries across 110 versions & 13 rubygems

Version Path
dchelimsky-rspec-1.1.10 examples/pure/file_accessor.rb
dchelimsky-rspec-1.1.11.1 examples/passing/file_accessor.rb
dchelimsky-rspec-1.1.11.2 examples/passing/file_accessor.rb
dchelimsky-rspec-1.1.11.3 examples/passing/file_accessor.rb
dchelimsky-rspec-1.1.11.4 examples/passing/file_accessor.rb
dchelimsky-rspec-1.1.11.5 examples/passing/file_accessor.rb
dchelimsky-rspec-1.1.11.6 examples/passing/file_accessor.rb
dchelimsky-rspec-1.1.11.7 examples/passing/file_accessor.rb
dchelimsky-rspec-1.1.11 examples/passing/file_accessor.rb
dchelimsky-rspec-1.1.12 examples/passing/file_accessor.rb
dchelimsky-rspec-1.1.99.1 examples/passing/file_accessor.rb
dchelimsky-rspec-1.1.99.13 examples/passing/file_accessor.rb
dchelimsky-rspec-1.1.99.2 examples/passing/file_accessor.rb
dchelimsky-rspec-1.1.99.3 examples/passing/file_accessor.rb
dchelimsky-rspec-1.1.99.4 examples/passing/file_accessor.rb
dchelimsky-rspec-1.1.99.5 examples/passing/file_accessor.rb
dchelimsky-rspec-1.1.99.6 examples/passing/file_accessor.rb
dchelimsky-rspec-1.1.99.7 examples/passing/file_accessor.rb
dchelimsky-rspec-1.1.99.8 examples/passing/file_accessor.rb
dchelimsky-rspec-1.1.99.9 examples/passing/file_accessor.rb