class ROM::Plugin

Plugin is a simple object used to store plugin configurations

@private

Public Instance Methods

apply_to(target, **options) click to toggle source

Apply this plugin to the target

@param [Class,Object] target

@api private

# File lib/rom/plugin.rb, line 35
def apply_to(target, **options)
  if mod.respond_to?(:apply)
    mod.apply(target, **options)
  elsif mod.respond_to?(:new)
    target.include(mod.new(**options))
  elsif target.is_a?(::Module)
    target.include(mod)
  end
end