aboutsummaryrefslogtreecommitdiffstats
path: root/lib/bundler/vendor/thor/core_ext/file_binary_read.rb
blob: d6af7e44b0998fca0786e160165aeff83d272b30 (plain)
1
2
3
4
5
6
7
8
9
class File #:nodoc:

  unless File.respond_to?(:binread)
    def self.binread(file)
      File.open(file, 'rb') { |f| f.read }
    end
  end

end