Class: CodeOwnership::Private::OwnershipMappers::TeamGlobs::GlobOverlap
- Inherits:
-
T::Struct
- Object
- T::Struct
- CodeOwnership::Private::OwnershipMappers::TeamGlobs::GlobOverlap
- Extended by:
- T::Sig
- Defined in:
- lib/code_ownership/private/ownership_mappers/team_globs.rb
Instance Method Summary collapse
Instance Method Details
#description ⇒ Object
43 44 45 46 47 48 49 50 51 |
# File 'lib/code_ownership/private/ownership_mappers/team_globs.rb', line 43 def description # These are sorted only to prevent non-determinism in output between local and CI environments. sorted_contexts = mapping_contexts.sort_by { |context| context.team.config_yml.to_s } description_args = sorted_contexts.map do |context| "`#{context.glob}` (from `#{context.team.config_yml}`)" end description_args.join(', ') end |