module Ccp::Persistent
Constants
- NotFound
Public Class Methods
lookup(name)
click to toggle source
# File lib/ccp/persistent.rb, line 14 def self.lookup(name) case name.to_s when "dir" ; Ccp::Persistent::Dir when "tsv" ; Ccp::Persistent::Tsv when "file" ; Ccp::Persistent::File when "json" ; Ccp::Persistent::Json else name.must(Ccp::Persistent::Base) { raise NotFound, "%s: %s" % [name.class, name] } end end