Method: Maths::Brain.read

Defined in:
lib/maths/brain.rb

.readObject

Public: Reads the data out of the brain



30
31
32
33
34
35
36
# File 'lib/maths/brain.rb', line 30

def self.read
  if File.exist?(brain_file)
    JSON.parse(File.read(brain_file))
  else
    {}
  end
end