Module: Ccp::Persistent::Loadable
- Included in:
- Ccp::Persistent
- Defined in:
- lib/ccp/persistent/loadable.rb
Instance Method Summary collapse
Instance Method Details
#load(file) ⇒ Object
4 5 6 7 8 |
# File 'lib/ccp/persistent/loadable.rb', line 4 def load(file) ext = Ccp::Serializers.lookup(Pathname(file).extname.to_s.delete(".")) kvs = load_kvs_lookup_by_filename(file) kvs.new(file.sub(%r{/$},''), ext) end |