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
backports-1.14.0 lib/backports/1.9.1/io.rb
backports-1.13.3 lib/backports/1.9.1/io.rb
backports-1.13.2 lib/backports/1.9.1/io.rb
backports-1.13.1 lib/backports/1.9.1/io.rb
backports-1.13.0 lib/backports/1.9.1/io.rb
backports-1.12.3 lib/backports/1.9.1/io.rb
backports-1.12.2 lib/backports/1.9.1/io.rb
backports-1.12.1 lib/backports/1.9.1/io.rb
backports-1.12.0 lib/backports/1.9.1/io.rb
backports-1.11.2 lib/backports/1.9/io.rb
backports-1.11.1 lib/backports/1.9/io.rb
backports-1.11.0 lib/backports/1.9/io.rb
backports-1.10.3 lib/backports/1.9/io.rb
backports-1.10.2 lib/backports/1.9/io.rb
backports-1.10.1 lib/backports/1.9/io.rb
backports-1.10.0 lib/backports/1.9/io.rb
backports-1.9.0 lib/backports/1.9/io.rb