Class: Rounders::Stores::YAML

Inherits:
Store
  • Object
show all
Defined in:
lib/rounders/stores/yaml.rb

Instance Method Summary collapse

Instance Method Details

#[](key) ⇒ Object



9
10
11
12
13
# File 'lib/rounders/stores/yaml.rb', line 9

def [](key)
  data.transaction do
    super
  end
end

#[]=(key, value) ⇒ Object



15
16
17
18
19
# File 'lib/rounders/stores/yaml.rb', line 15

def []=(key, value)
  data.transaction do
    super
  end
end

#dataObject



21
22
23
# File 'lib/rounders/stores/yaml.rb', line 21

def data
  @data ||= ::YAML::Store.new(config.file)
end