Sha256: d8d38135e7789f1882330ebbad579b5874e8b05e5975b5c753aa43967348a06c
Contents?: true
Size: 229 Bytes
Versions: 1
Compression:
Stored size: 229 Bytes
Contents
module Metastore class StorageFactory def self.from_sym(symbol) klass = symbol.to_s.upcase Storage.const_get(klass) rescue NameError => e raise Errors::UnknownStorageType, e.message end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
metastore-0.4.0 | lib/metastore/storage_factory.rb |