Class: Ruco::FileStore
Instance Method Summary collapse
- #get(key) ⇒ Object
-
#initialize(folder, options) ⇒ FileStore
constructor
A new instance of FileStore.
- #set(key, value) ⇒ Object
Constructor Details
#initialize(folder, options) ⇒ FileStore
Returns a new instance of FileStore.
6 7 8 9 |
# File 'lib/ruco/file_store.rb', line 6 def initialize(folder, ) @folder = folder @options = end |
Instance Method Details
#get(key) ⇒ Object
17 18 19 20 |
# File 'lib/ruco/file_store.rb', line 17 def get(key) file = file(key) deserialize File.binary_read(file) if File.exist?(file) end |