Sha256: ad628371817338ced910c38cc93be60a8358e06abff25065e944f95baf0b1759

Contents?: true

Size: 352 Bytes

Versions: 12

Compression:

Stored size: 352 Bytes

Contents

# frozen_string_literal: true

require 'rom/plugin'

module ROM
  # @api private
  class SchemaPlugin < Plugin
    # Extends a DSL instance with a module provided by the plugin
    #
    # @param [ROM::Schema::DSL] dsl
    #
    # @api private
    def extend_dsl(dsl)
      dsl.extend(mod.const_get(:DSL)) if mod.const_defined?(:DSL)
    end
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
rom-core-5.3.2 lib/rom/schema_plugin.rb
rom-core-5.3.1 lib/rom/schema_plugin.rb
rom-core-5.3.0 lib/rom/schema_plugin.rb
rom-core-5.2.6 lib/rom/schema_plugin.rb
rom-core-5.2.5 lib/rom/schema_plugin.rb
rom-core-5.2.4 lib/rom/schema_plugin.rb
rom-core-5.2.3 lib/rom/schema_plugin.rb
rom-core-5.2.2 lib/rom/schema_plugin.rb
rom-core-5.2.1 lib/rom/schema_plugin.rb
rom-core-5.1.2 lib/rom/schema_plugin.rb
rom-core-5.1.1 lib/rom/schema_plugin.rb
rom-core-5.1.0 lib/rom/schema_plugin.rb