Class: CeilingCat::Storage::Yaml

Inherits:
Base
  • Object
show all
Defined in:
lib/ceiling_cat/storage/yaml.rb

Class Attribute Summary collapse

Class Method Summary collapse

Class Attribute Details

.fileObject

Returns the value of attribute file.



7
8
9
# File 'lib/ceiling_cat/storage/yaml.rb', line 7

def file
  @file
end

Class Method Details

.[](k) ⇒ Object

Returns the value at the key k.



25
26
27
# File 'lib/ceiling_cat/storage/yaml.rb', line 25

def [](k)
  internal[k]
end

.[]=(k, v) ⇒ Object

Sets the key k to the value v



18
19
20
21
22
# File 'lib/ceiling_cat/storage/yaml.rb', line 18

def []=(k, v)
  internal[k] = v
  persist!
  v
end