Module: Store::Commit
- Defined in:
- lib/store.rb
Constant Summary collapse
- @@commits =
{}
Class Method Summary collapse
Class Method Details
.[](commit_id) ⇒ Object
19 20 21 |
# File 'lib/store.rb', line 19 def Commit.[](commit_id) ::Store::read(@@commits, commit_id) end |
.cache(old = {}) ⇒ Object
27 28 29 |
# File 'lib/store.rb', line 27 def Commit.cache(old={}) ::Store::cache("commits", @@commits, Cache.read("commits", {})) end |
.index(commit) ⇒ Object
23 24 25 |
# File 'lib/store.rb', line 23 def Commit.index(commit) ::Store::write(@@commits, commit[:commit_id], commit) end |