Sha256: b67bfcae6bfa733c41f8bd31ae83111883db4657b16f36fc0952040b8a2bc0b6

Contents?: true

Size: 294 Bytes

Versions: 37

Compression:

Stored size: 294 Bytes

Contents

class IO
  class << self
    def binread(file, *arg)
      raise ArgumentError, "wrong number of arguments (#{1+arg.size} for 1..3)" unless arg.size < 3
      File.open(Backports.convert_to_path(file),"rb") do |f|
        f.read(*arg)
      end
    end unless method_defined? :binread
  end
end

Version data entries

37 entries across 37 versions & 2 rubygems

Version Path
marcandre-backports-1.9.0 lib/backports/1.9/io.rb
backports-2.1.0 lib/backports/1.9.1/io.rb
backports-2.0.3 lib/backports/1.9.1/io.rb
backports-2.0.2 lib/backports/1.9.1/io.rb
backports-2.0.1 lib/backports/1.9.1/io.rb
backports-2.0.0 lib/backports/1.9.1/io.rb
backports-1.18.2 lib/backports/1.9.1/io.rb
backports-1.18.1 lib/backports/1.9.1/io.rb
backports-1.18.0 lib/backports/1.9.1/io.rb
backports-1.17.1 lib/backports/1.9.1/io.rb
backports-1.17.0 lib/backports/1.9.1/io.rb
backports-1.16.7 lib/backports/1.9.1/io.rb
backports-1.16.6 lib/backports/1.9.1/io.rb
backports-1.16.5 lib/backports/1.9.1/io.rb
backports-1.16.4 lib/backports/1.9.1/io.rb
backports-1.16.3 lib/backports/1.9.1/io.rb
backports-1.16.2 lib/backports/1.9.1/io.rb
backports-1.16.1 lib/backports/1.9.1/io.rb
backports-1.15.0 lib/backports/1.9.1/io.rb
backports-1.14.1 lib/backports/1.9.1/io.rb