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