Module: Jaysus::Local::ClassMethods
- Defined in:
- lib/jaysus/local.rb
Instance Method Summary collapse
Instance Method Details
#all ⇒ Object
32 33 34 35 36 37 38 |
# File 'lib/jaysus/local.rb', line 32 def all records = [] Dir[store_file_dir.join('*')].each do |id| records << find(id) end records end |
#find(id) ⇒ Object
40 41 42 43 44 |
# File 'lib/jaysus/local.rb', line 40 def find(id) super do store_file_dir.join("#{id}").read end end |