Sha256: ce445e47108c0cbecfc40cd749b6b464a49eb738002dc746c1722935e30db017

Contents?: true

Size: 463 Bytes

Versions: 10

Compression:

Stored size: 463 Bytes

Contents

require 'rom/types'
require 'rom/initializer'

module ROM
  module AutoRegistrationStrategies
    # Base class for registration strategies
    #
    # @api private
    class Base
      extend Initializer

      PathnameType = Types.Definition(Pathname).constrained(type: Pathname)

      EXTENSION_REGEX = /\.rb\z/

      # @!attribute [r] file
      #   @return [String] Name of a component file
      option :file, type: Types::Strict::String
    end
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
rom-core-4.2.1 lib/rom/setup/auto_registration_strategies/base.rb
rom-core-4.2.0 lib/rom/setup/auto_registration_strategies/base.rb
rom-core-4.1.2 lib/rom/setup/auto_registration_strategies/base.rb
rom-core-4.1.1 lib/rom/setup/auto_registration_strategies/base.rb
rom-core-4.1.0 lib/rom/setup/auto_registration_strategies/base.rb
rom-core-4.0.2 lib/rom/setup/auto_registration_strategies/base.rb
rom-core-4.0.1 lib/rom/setup/auto_registration_strategies/base.rb
rom-core-4.0.0 lib/rom/setup/auto_registration_strategies/base.rb
rom-core-4.0.0.rc2 lib/rom/setup/auto_registration_strategies/base.rb
rom-core-4.0.0.rc1 lib/rom/setup/auto_registration_strategies/base.rb