lib/codeguessing/console.rb in codeguessing-0.4.8 vs lib/codeguessing/console.rb in codeguessing-0.4.9
- old
+ new
@@ -1,12 +1,12 @@
module Codeguessing
class Console
attr_reader :game, :scores
- MESSAGE = YAML.load_file(File.absolute_path('data/messages.yml'))
+ MESSAGE = YAML.load_file(File.expand_path('data/messages.yml'))
def initialize
- @path = File.absolute_path('data/scores.yml')
+ @path = File.expand_path('data/scores.yml')
@scores = load(@path)
@game = Game.new
end
def rules