Sha256: f8f1869980706d809b4dd88293b01a4d9ef746a5230e3d579558f91efafda5fd

Contents?: true

Size: 311 Bytes

Versions: 5

Compression:

Stored size: 311 Bytes

Contents

module Monolens
  module Namespace
    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
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
monolens-0.6.4 lib/monolens/namespace.rb
monolens-0.6.3 lib/monolens/namespace.rb
monolens-0.6.2 lib/monolens/namespace.rb
monolens-0.6.1 lib/monolens/namespace.rb
monolens-0.6.0 lib/monolens/namespace.rb