Sha256: 267ba0d6b655e6916574b8da4ab5f66bb84bcd2fe457c83eadcd003be6d7302c

Contents?: true

Size: 308 Bytes

Versions: 143

Compression:

Stored size: 308 Bytes

Contents

class IO #:nodoc:
  class << self
    unless method_defined? :binread
      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
    end
  end
end

Version data entries

143 entries across 142 versions & 25 rubygems

Version Path
overman-0.88.1 lib/foreman/vendor/thor/lib/thor/core_ext/io_binary_read.rb
foreman-0.88.1 lib/foreman/vendor/thor/lib/thor/core_ext/io_binary_read.rb
fiveman-0.1.1 lib/fiveman/vendor/thor/lib/thor/core_ext/io_binary_read.rb
fiveman-0.1.0 lib/fiveman/vendor/thor/lib/thor/core_ext/io_binary_read.rb
overman-0.87.3 lib/foreman/vendor/thor/lib/thor/core_ext/io_binary_read.rb
rubygems-update-3.0.9 bundler/lib/bundler/vendor/thor/lib/thor/core_ext/io_binary_read.rb
rubygems-update-2.7.11 bundler/lib/bundler/vendor/thor/lib/thor/core_ext/io_binary_read.rb
foreman-0.87.2 lib/foreman/vendor/thor/lib/thor/core_ext/io_binary_read.rb
files.com-1.0.55 docs/vendor/bundle/ruby/2.5.0/gems/thor-0.20.3/lib/thor/core_ext/io_binary_read.rb
foreman-0.87.1 lib/foreman/vendor/thor/lib/thor/core_ext/io_binary_read.rb
rubygems-update-3.0.8 bundler/lib/bundler/vendor/thor/lib/thor/core_ext/io_binary_read.rb
rubygems-update-3.0.7 bundler/lib/bundler/vendor/thor/lib/thor/core_ext/io_binary_read.rb
foreman-0.87.0 lib/foreman/vendor/thor/lib/thor/core_ext/io_binary_read.rb
honeybadger-4.5.3 vendor/bundle/ruby/2.6.0/gems/thor-0.20.3/lib/thor/core_ext/io_binary_read.rb
zuora_connect_ui-0.10.0 vendor/ruby/2.6.0/gems/thor-0.20.3/lib/thor/core_ext/io_binary_read.rb
tdiary-5.1.0 vendor/bundle/gems/thor-0.20.3/lib/thor/core_ext/io_binary_read.rb
spec_fill-0.1.2 vendor/bundle/ruby/2.6.0/gems/thor-0.20.3/lib/thor/core_ext/io_binary_read.rb
rubygems-update-3.1.0.pre3 bundler/lib/bundler/vendor/thor/lib/thor/core_ext/io_binary_read.rb
bundler-2.1.0.pre.3 lib/bundler/vendor/thor/lib/thor/core_ext/io_binary_read.rb
spec_fill-0.1.1 vendor/bundle/ruby/2.6.0/gems/thor-0.20.3/lib/thor/core_ext/io_binary_read.rb