Method: Dry::System::Identifier#key_with_separator

Defined in:
lib/dry/system/identifier.rb

#key_with_separator(separator) ⇒ String

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 the key with its segments separated by the given separator

Examples:

identifier.key # => "articles.operations.create"
identifier.key_with_separator("/") # => "articles/operations/create"

Returns:

  • (String)

    the key using the separator



124
125
126
# File 'lib/dry/system/identifier.rb', line 124

def key_with_separator(separator)
  segments.join(separator)
end