Module: PiFi::Utils

Included in:
ConfigGetter, Streams
Defined in:
lib/pifi/lib/utils.rb

Instance Method Summary collapse

Instance Method Details

#file_to_hash(path) ⇒ Object



3
4
5
6
# File 'lib/pifi/lib/utils.rb', line 3

def file_to_hash(path)
  file_content = File.read(path)
  JSON.parse(file_content)
end