Sha256: 692c215851f6eab235f14c0cabc6434ee81e3c74a9d915c1f7542872d4de7fd0
Contents?: true
Size: 341 Bytes
Versions: 5
Compression:
Stored size: 341 Bytes
Contents
module Monolens module Type class Object extend Type::ErrorHandling def self.dress(instance, registry, &block) fail!("Object expected, got #{instance.class}", &block) unless instance.is_a?(::Hash) instance end def self.===(instance) instance.is_a?(::Hash) end end end end
Version data entries
5 entries across 5 versions & 1 rubygems