Sha256: 72c6d5249cf9c86a6ad5765f50c85946bbd9889e3ab3681e8b132215968b365e

Contents?: true

Size: 363 Bytes

Versions: 5

Compression:

Stored size: 363 Bytes

Contents

module ExpressTemplates
  module Components
    class Registry
      def self.[]=(builder_method, klass)
        _map[builder_method]= klass
      end

      def self.[](builder_method)
        _map[builder_method]
      end

      def self.keys
        _map.keys
      end

      private
        def self._map
          @_map ||= {}
        end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
express_templates-0.11.20 lib/express_templates/components/registry.rb
express_templates-0.11.20.rc1 lib/express_templates/components/registry.rb
express_templates-0.11.19 lib/express_templates/components/registry.rb
express_templates-0.11.18 lib/express_templates/components/registry.rb
express_templates-0.11.17 lib/express_templates/components/registry.rb