Class: IO
Do not use. This class is for internal use only.
Relationships & Source Files | |
Inherits: | Object |
Defined in: | lib/bundler/vendor/thor/lib/thor/core_ext/io_binary_read.rb |
Class Method Summary
Class Method Details
.binread(file, *args)
# File 'lib/bundler/vendor/thor/lib/thor/core_ext/io_binary_read.rb', line 4
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