Method: Polytrix::StateFile#read

Defined in:
lib/polytrix/state_file.rb

#readObject



12
13
14
15
16
17
18
# File 'lib/polytrix/state_file.rb', line 12

def read
  if File.exist?(file_name)
    Hashie::Mash.load(file_name).dup || {}
  else
    Hashie::Mash.new
  end
end