Class: File

Inherits:
Object
  • Object
show all
Defined in:
lib/core/actions/file_binary_read.rb,
lib/core/thor_actions/file_binary_read.rb

Overview

:nodoc:

Class Method Summary collapse

Class Method Details

.binread(file) ⇒ Object



4
5
6
# File 'lib/core/actions/file_binary_read.rb', line 4

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