Module: LocalPersist
- Defined in:
- lib/rbbt/persist.rb
Instance Attribute Summary collapse
-
#local_persist_dir ⇒ Object
Returns the value of attribute local_persist_dir.
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.
471 472 473 |
# File 'lib/rbbt/persist.rb', line 471 def local_persist_dir @local_persist_dir end |
Instance Method Details
#local_persist(name, type = nil, options = {}, persist_options = nil, &block) ⇒ Object
478 479 480 481 482 483 |
# File 'lib/rbbt/persist.rb', line 478 def local_persist(name, type = nil, = {}, = nil, &block) ||= {} = {:dir => local_persist_dir}.merge [:other] = Persist.persist(name, type, , &block) end |
#local_persist_tsv(source, name, opt = {}, options = {}, &block) ⇒ Object
485 486 487 |
# File 'lib/rbbt/persist.rb', line 485 def local_persist_tsv(source, name, opt = {}, = {}, &block) Persist.persist_tsv(source, name, opt, .merge({:dir => local_persist_dir, :persist => true}), &block) end |