Class: ROM::SchemaPlugin Private

Inherits:
Plugin
  • Object
show all
Defined in:
core/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 Method Summary collapse

Instance Method Details

#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

Parameters:



13
14
15
# File 'core/lib/rom/schema_plugin.rb', line 13

def extend_dsl(dsl)
  dsl.extend(mod.const_get(:DSL)) if mod.const_defined?(:DSL)
end