Sha256: b9ec8590a5d0b5f56a1597bcd9214abe731cbc418d738023371b95cb114e0369
Contents?: true
Size: 535 Bytes
Versions: 5
Compression:
Stored size: 535 Bytes
Contents
require 'rom/constants' require 'rom/plugin_base' require 'rom/support/configurable' module ROM # Plugin is a simple object used to store plugin configurations # # @private class Plugin < PluginBase include Configurable # Apply this plugin to the provided class # # @param [Class] klass # # @api private def apply_to(klass, options = EMPTY_HASH) if mod.respond_to?(:new) klass.send(:include, mod.new(options)) else klass.send(:include, mod) end end end end
Version data entries
5 entries across 5 versions & 1 rubygems
Version | Path |
---|---|
rom-core-4.2.1 | lib/rom/plugin.rb |
rom-core-4.2.0 | lib/rom/plugin.rb |
rom-core-4.1.2 | lib/rom/plugin.rb |
rom-core-4.1.1 | lib/rom/plugin.rb |
rom-core-4.1.0 | lib/rom/plugin.rb |