Sha256: 124a270f5f3289abc777e8b837837a6ccc32fd64c112ba59256c56e389946182

Contents?: true

Size: 471 Bytes

Versions: 9

Compression:

Stored size: 471 Bytes

Contents

# frozen_string_literal: true

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

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

      PathnameType = Types.Instance(Pathname)

      EXTENSION_REGEX = /\.rb\z/.freeze

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

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
rom-core-5.3.2 lib/rom/setup/auto_registration_strategies/base.rb
rom-core-5.3.1 lib/rom/setup/auto_registration_strategies/base.rb
rom-core-5.3.0 lib/rom/setup/auto_registration_strategies/base.rb
rom-core-5.2.6 lib/rom/setup/auto_registration_strategies/base.rb
rom-core-5.2.5 lib/rom/setup/auto_registration_strategies/base.rb
rom-core-5.2.4 lib/rom/setup/auto_registration_strategies/base.rb
rom-core-5.2.3 lib/rom/setup/auto_registration_strategies/base.rb
rom-core-5.2.2 lib/rom/setup/auto_registration_strategies/base.rb
rom-core-5.2.1 lib/rom/setup/auto_registration_strategies/base.rb