Class: ROM::AutoRegistrationStrategies::Base Private

Inherits:
Object
  • Object
show all
Extended by:
Initializer
Defined in:
lib/rom/compat/auto_registration_strategies/base.rb

Overview

This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.

Base class for registration strategies

Direct Known Subclasses

CustomNamespace, NoNamespace, WithNamespace

Constant Summary collapse

PathnameType =

This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.

Types.Instance(Pathname)
EXTENSION_REGEX =

This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.

/\.rb\z/.freeze

Instance Attribute Summary collapse

Instance Attribute Details

#fileString (readonly)

Returns Name of a component file.

Returns:

  • (String)

    Name of a component file


21
# File 'lib/rom/compat/auto_registration_strategies/base.rb', line 21

option :file, type: Types::Strict::String

#inflectorDry::Inflector (readonly)

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Returns String inflector.

Returns:

  • (Dry::Inflector)

    String inflector


26
# File 'lib/rom/compat/auto_registration_strategies/base.rb', line 26

option :inflector, reader: true, default: -> { Inflector }