Method: File.read_binary

Defined in:
lib/yard/core_ext/file.rb

.read_binary(file) ⇒ String

Reads a file with binary encoding

Returns:

  • (String)

    the ascii-8bit encoded data

Since:

  • 0.5.3



66
67
68
# File 'lib/yard/core_ext/file.rb', line 66

def self.read_binary(file)
  File.open(file, 'rb', &:read)
end