Class: Manateq::Helper

Inherits:
Object
  • Object
show all
Defined in:
lib/manateq/helper.rb

Class Method Summary collapse

Class Method Details

.to_hash(file) ⇒ Object



5
6
7
8
# File 'lib/manateq/helper.rb', line 5

def self.to_hash(file)
  file = File.read("lib/manateq/data/#{file}.json")
  data_hash = JSON.parse(file)
end