Module: LocalPersist
- Defined in:
- lib/rbbt/persist.rb
Instance Attribute Summary collapse
-
#local_persist_dir ⇒ Object
Returns the value of attribute local_persist_dir.
Class Method Summary collapse
Instance Method Summary collapse
- #local_persist(name, type = nil, options = {}, persist_options = nil, &block) ⇒ Object
- #local_persist_tsv(source, name, opt = {}, options = {}, &block) ⇒ Object
Instance Attribute Details
#local_persist_dir ⇒ Object
Returns the value of attribute local_persist_dir.
510 511 512 |
# File 'lib/rbbt/persist.rb', line 510 def local_persist_dir @local_persist_dir end |
Class Method Details
.local_persist(name, type = nil, options = {}, persist_options = nil, &block) ⇒ Object
521 522 523 524 525 526 |
# File 'lib/rbbt/persist.rb', line 521 def self.local_persist(name, type = nil, = {}, = nil, &block) ||= {} = {:dir => Rbbt.var.cache.persistence.find(:lib)}.merge [:other] = Persist.persist(name, type, , &block) end |
Instance Method Details
#local_persist(name, type = nil, options = {}, persist_options = nil, &block) ⇒ Object
528 529 530 531 532 |
# File 'lib/rbbt/persist.rb', line 528 def local_persist(name, type = nil, = {}, = nil, &block) ||= {} = {:dir => local_persist_dir}.merge self.local_persist(name, type, , , &block) end |
#local_persist_tsv(source, name, opt = {}, options = {}, &block) ⇒ Object
534 535 536 |
# File 'lib/rbbt/persist.rb', line 534 def local_persist_tsv(source, name, opt = {}, = {}, &block) Persist.persist_tsv(source, name, opt, .merge({:dir => local_persist_dir, :persist => true}), &block) end |