Class: File

Inherits:
Object
  • Object
show all
Defined in:
lib/vendor/thor/lib/thor/core_ext/file_binary_read.rb

Overview

:nodoc:

Class Method Summary collapse

Class Method Details

.binread(file) ⇒ Object



4
5
6
# File 'lib/vendor/thor/lib/thor/core_ext/file_binary_read.rb', line 4

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