Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: 681bf1fc48
Fetching contributors…

Cannot retrieve contributors at this time

16 lines (13 sloc) 0.267 kb
if RUBY_VERSION < '1.9.2'
# :stopdoc:
class IO
def self.binread(name, length = nil, offset = nil)
return File.read name unless length || offset
File.open(name, 'rb') { |f|
f.seek offset if offset
f.read length
}
end
end
# :startdoc:
end
Jump to Line
Something went wrong with that request. Please try again.