Class: File

Inherits:
Object show all
Defined in:
lib/quickbooks/support/monkey_patches.rb

Class Method Summary collapse

Class Method Details

.read_from_unknown(file) ⇒ Object



40
41
42
43
44
45
46
47
# File 'lib/quickbooks/support/monkey_patches.rb', line 40

def self.read_from_unknown(file)
  case file
  when String
    File.read(file)
  when IO
    file.read
  end
end