class Codebreaker::StorageWrapper

Attributes

storage_file[R]

Public Class Methods

new(storage_file = 'statistics.yml') click to toggle source
# File lib/codebreaker/storage_wrapper.rb, line 7
def initialize(storage_file = 'statistics.yml')
  @storage_file = storage_file
end

Public Instance Methods

new_store() click to toggle source
# File lib/codebreaker/storage_wrapper.rb, line 11
def new_store
  YAML::Store.new(storage_file)
end
storage_exists?() click to toggle source
# File lib/codebreaker/storage_wrapper.rb, line 15
def storage_exists?
  File.exist? storage_file
end