Sha256: da5e715040d58037593f3a5ffbaa9a88abe097134cb149a8174d7e31da68b8b6
Contents?: true
Size: 306 Bytes
Versions: 5
Compression:
Stored size: 306 Bytes
Contents
module Monolens module Type class Lenses extend Type::ErrorHandling def self.===(arg) arg.is_a?(Lens) end def self.dress(value, registry, &block) registry.lens(value) rescue TypeError => ex fail!(ex.message, &block) end end end end
Version data entries
5 entries across 5 versions & 1 rubygems