Class: CeilingCat::Storage::Yaml
- Defined in:
- lib/ceiling_cat/storage/yaml.rb
Class Attribute Summary collapse
-
.file ⇒ Object
Returns the value of attribute file.
Class Method Summary collapse
-
.[](k) ⇒ Object
Returns the value at the key
k
. -
.[]=(k, v) ⇒ Object
Sets the key
k
to the valuev
.
Class Attribute Details
.file ⇒ Object
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 |