Class: FeatureMap::Private::AssignmentMappers::FeatureGlobs::GlobOverlap

Inherits:
Struct
  • Object
show all
Defined in:
lib/feature_map/private/assignment_mappers/feature_globs.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#mapping_contextsObject

Returns the value of attribute mapping_contexts

Returns:

  • (Object)

    the current value of mapping_contexts



26
27
28
# File 'lib/feature_map/private/assignment_mappers/feature_globs.rb', line 26

def mapping_contexts
  @mapping_contexts
end

Instance Method Details

#descriptionObject



27
28
29
30
31
32
33
34
35
# File 'lib/feature_map/private/assignment_mappers/feature_globs.rb', line 27

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.feature.config_yml.to_s }
  description_args = sorted_contexts.map do |context|
    "`#{context.glob}` (from `#{context.feature.config_yml}`)"
  end

  description_args.join(', ')
end