Sha256: 92543cab3c7a5e8e752047564863106ddebcb6d61b2589a5c68bcb6eb6c8e004
Contents?: true
Size: 286 Bytes
Versions: 309
Compression:
Stored size: 286 Bytes
Contents
class IO #:nodoc: class << self def binread(file, *args) raise ArgumentError, "wrong number of arguments (#{1 + args.size} for 1..3)" unless args.size < 3 File.open(file, 'rb') do |f| f.read(*args) end end unless method_defined? :binread end end
Version data entries
309 entries across 301 versions & 21 rubygems