Class: ROM::SchemaPlugin Private
- Inherits:
-
PluginBase
- Object
- PluginBase
- ROM::SchemaPlugin
- Includes:
- Configurable
- Defined in:
- lib/rom/schema_plugin.rb
This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.
Instance Attribute Summary
Attributes inherited from PluginBase
Instance Method Summary collapse
-
#apply_to(schema, options = EMPTY_HASH) ⇒ Object
private
Apply this plugin to the provided configuration.
-
#extend_dsl(dsl) ⇒ Object
private
Extends a DSL instance with a module provided by the plugin.
Methods included from Configurable
Methods inherited from PluginBase
#initialize, #relation?, #schema?
Constructor Details
This class inherits a constructor from ROM::PluginBase
Instance Method Details
#apply_to(schema, options = EMPTY_HASH) ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Apply this plugin to the provided configuration
16 17 18 |
# File 'lib/rom/schema_plugin.rb', line 16 def apply_to(schema, = EMPTY_HASH) mod.apply(schema, ) if mod.respond_to?(:apply) end |
#extend_dsl(dsl) ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Extends a DSL instance with a module provided by the plugin
25 26 27 |
# File 'lib/rom/schema_plugin.rb', line 25 def extend_dsl(dsl) dsl.extend(mod.const_get(:DSL)) if mod.const_defined?(:DSL) end |