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

Version Path
skylight-6.1.0.beta lib/skylight/vendor/cli/thor/core_ext/io_binary_read.rb
skylight-6.0.4 lib/skylight/vendor/cli/thor/core_ext/io_binary_read.rb
skylight-6.0.3 lib/skylight/vendor/cli/thor/core_ext/io_binary_read.rb
skylight-5.3.5 lib/skylight/vendor/cli/thor/core_ext/io_binary_read.rb
skylight-6.0.2 lib/skylight/vendor/cli/thor/core_ext/io_binary_read.rb
skylight-6.0.1 lib/skylight/vendor/cli/thor/core_ext/io_binary_read.rb
skylight-6.0.0 lib/skylight/vendor/cli/thor/core_ext/io_binary_read.rb
skylight-6.0.0.beta2 lib/skylight/vendor/cli/thor/core_ext/io_binary_read.rb
skylight-6.0.0.beta lib/skylight/vendor/cli/thor/core_ext/io_binary_read.rb
skylight-5.3.4 lib/skylight/vendor/cli/thor/core_ext/io_binary_read.rb
skylight-5.3.3 lib/skylight/vendor/cli/thor/core_ext/io_binary_read.rb
skylight-5.3.2 lib/skylight/vendor/cli/thor/core_ext/io_binary_read.rb
skylight-5.3.1 lib/skylight/vendor/cli/thor/core_ext/io_binary_read.rb
skylight-5.3.0 lib/skylight/vendor/cli/thor/core_ext/io_binary_read.rb
skylight-5.2.0 lib/skylight/vendor/cli/thor/core_ext/io_binary_read.rb
vagrant-unbundled-2.2.19.0 vendor/bundle/ruby/3.0.0/gems/thor-0.18.1/lib/thor/core_ext/io_binary_read.rb
skylight-5.2.0.beta2 lib/skylight/vendor/cli/thor/core_ext/io_binary_read.rb
vagrant-unbundled-2.2.18.0 vendor/bundle/ruby/3.0.0/gems/thor-0.18.1/lib/thor/core_ext/io_binary_read.rb
skylight-5.2.0.beta lib/skylight/vendor/cli/thor/core_ext/io_binary_read.rb
skylight-5.1.1 lib/skylight/vendor/cli/thor/core_ext/io_binary_read.rb