lib/rom/sql/schema/index_dsl.rb in rom-sql-3.6.4 vs lib/rom/sql/schema/index_dsl.rb in rom-sql-4.0.0.alpha1

- old
+ new

@@ -1,26 +1,24 @@ # frozen_string_literal: true -require 'set' +require "set" module ROM module SQL class Schema < ROM::Schema # @api public - class IndexDSL # < BasicObject + class IndexDSL extend Initializer option :attr_class attr_reader :registry # @api private def initialize(*, &block) super - @registry = [] - - instance_exec(&block) + instance_exec(&block) if block end ruby2_keywords(:initialize) if respond_to?(:ruby2_keywords, true) # @api public def index(*attributes, **options)