Class: File

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

Overview

:nodoc:

Class Method Summary (collapse)

Class Method Details

+ (Object) binread(file)



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

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