fail!
6 7 8
# File 'lib/monolens/type/lenses.rb', line 6 def self.===(arg) arg.is_a?(Lens) end
10 11 12 13 14
# File 'lib/monolens/type/lenses.rb', line 10 def self.dress(value, registry, &block) registry.lens(value) rescue TypeError => ex fail!(ex.message, &block) end