Class: Vulcano::JsonReader

Inherits:
Object
  • Object
show all
Defined in:
lib/vulcano/json_reader.rb

Instance Method Summary collapse

Instance Method Details

#read_from_file(file_path) ⇒ Object



3
4
5
6
# File 'lib/vulcano/json_reader.rb', line 3

def read_from_file(file_path)
  file = File.read(file_path)
  JSON.parse(file)
end