Sha256: de32616096d1d4de2cfaab8bf5d9cc9f78094d85ef41cbcbdf78ca57b001b62a
Contents?: true
Size: 413 Bytes
Versions: 11
Compression:
Stored size: 413 Bytes
Contents
class CleanHash def self.create type, data={} case type when :indifferent ::CleanHash::Indifferent.new data when :safe ::CleanHash::Safe.new data when :strict ::CleanHash::Strict.new data when :stuct ::CleanHash.create_strut data when :mutex ::CleanHash::MutexHash.new data else raise ArgumentError, 'Unsupported type: %s' % type end end end
Version data entries
11 entries across 11 versions & 1 rubygems