Sha256: 48a808bb32c805627c7a9da66f669176ef01423fb39d507f1cb0d04ad66681ac

Contents?: true

Size: 597 Bytes

Versions: 16

Compression:

Stored size: 597 Bytes

Contents

module ROM
  # Abstract plugin base
  #
  # @private
  class PluginBase
    # @return [Module] a module representing the plugin
    #
    # @api private
    attr_reader :mod

    # @return [Hash] configuration options
    #
    # @api private
    attr_reader :options

    # @api private
    def initialize(mod, options)
      @mod      = mod
      @options  = options
    end

    # Apply this plugin to the provided class
    #
    # @param [Mixed] base
    #
    # @api private
    def apply_to(_base)
      raise NotImplementedError, "#{self.class}#apply_to not implemented"
    end
  end
end

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
rom-3.0.3 lib/rom/plugin_base.rb
rom-3.0.2 lib/rom/plugin_base.rb
rom-3.0.1 lib/rom/plugin_base.rb
rom-3.0.0 lib/rom/plugin_base.rb
rom-3.0.0.rc2 lib/rom/plugin_base.rb
rom-3.0.0.rc1 lib/rom/plugin_base.rb
rom-3.0.0.beta3 lib/rom/plugin_base.rb
rom-3.0.0.beta2 lib/rom/plugin_base.rb
rom-3.0.0.beta1 lib/rom/plugin_base.rb
rom-2.0.2 lib/rom/plugin_base.rb
rom-2.0.1 lib/rom/plugin_base.rb
rom-2.0.0 lib/rom/plugin_base.rb
rom-1.0.0 lib/rom/plugin_base.rb
rom-1.0.0.rc1 lib/rom/plugin_base.rb
rom-1.0.0.beta2 lib/rom/plugin_base.rb
rom-1.0.0.beta1 lib/rom/plugin_base.rb