Module: Monolens::Namespace

Included in:
Array, Check, Coerce, Core, Object, Skip, Str
Defined in:
lib/monolens/namespace.rb

Instance Method Summary collapse

Instance Method Details

#factor_lens(namespace_name, lens_name, options, registry) ⇒ Object



3
4
5
6
7
8
9
# File 'lib/monolens/namespace.rb', line 3

def factor_lens(namespace_name, lens_name, options, registry)
  if private_method_defined?(lens_name, false)
    send(lens_name, options, registry)
  else
    raise Error, "No such lens #{[namespace_name, lens_name].join('.')}"
  end
end