Class: FeatureMap::Private::AssignmentMappers::FeatureGlobs::GlobOverlap
- Inherits:
-
Struct
- Object
- Struct
- FeatureMap::Private::AssignmentMappers::FeatureGlobs::GlobOverlap
- Defined in:
- lib/feature_map/private/assignment_mappers/feature_globs.rb
Instance Attribute Summary collapse
-
#mapping_contexts ⇒ Object
Returns the value of attribute mapping_contexts.
Instance Method Summary collapse
Instance Attribute Details
#mapping_contexts ⇒ Object
Returns the value of attribute 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
#description ⇒ Object
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 |