Sha256: 5a13aed4a9d6cf7dc21236483ff01395e8143bd2caedbe196d8489a4c3250fe6

Contents?: true

Size: 464 Bytes

Versions: 6

Compression:

Stored size: 464 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/

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

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
rom-core-5.1.2 lib/rom/setup/auto_registration_strategies/base.rb
rom-core-5.1.1 lib/rom/setup/auto_registration_strategies/base.rb
rom-core-5.1.0 lib/rom/setup/auto_registration_strategies/base.rb
rom-core-5.0.2 lib/rom/setup/auto_registration_strategies/base.rb
rom-core-5.0.1 lib/rom/setup/auto_registration_strategies/base.rb
rom-core-5.0.0 lib/rom/setup/auto_registration_strategies/base.rb