Module: Monolens::Namespace
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, , registry) if private_method_defined?(lens_name, false) send(lens_name, , registry) else raise Error, "No such lens #{[namespace_name, lens_name].join('.')}" end end |