Sha256: 39fdc93fc41ba6686189da92a7e222bc68f4ceb91bcb711086845425b91233d4
Contents?: true
Size: 366 Bytes
Versions: 3
Compression:
Stored size: 366 Bytes
Contents
require 'ruby19' ruby18 do module Binread def binread path_or_file_descriptor open(path_or_file_descriptor,'rb'){|io| io.read } end end IO.extend(Binread) File.extend(Binread) class String def encode encoding if %w[BINARY ASCII-8BIT].include? encoding return self else super end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
elia-2.4.2.pre | lib/ruby19/binread.rb |
elia-2.4.1 | lib/ruby19/binread.rb |
elia-2.3.2 | lib/ruby19/binread.rb |