Class: CeilingCat::Storage::Base

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

Direct Known Subclasses

Hash, Yaml

Class Method Summary collapse

Class Method Details

.[](k) ⇒ Object

Returns the value at the key k.


12
13
14
# File 'lib/ceiling_cat/storage/base.rb', line 12

def [](k)
  raise NotImplementedError, "Implement in storage type file!"
end

.[]=(k, v) ⇒ Object

Sets the key k to the value v in the current storage system


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

def []=(k,v)
  raise NotImplementedError, "Implement in storage type file!"
end