Sha256: a18e84c16fa1db03d833a98f13e54de2a34dae3763e1ff65d64b9d1b59c7200e

Contents?: true

Size: 258 Bytes

Versions: 5

Compression:

Stored size: 258 Bytes

Contents

module Chutney
  # Mixin to lint for tags based on their relationship to eachother
  module TagCollector
    def gather_tags(element)
      return [] unless element.include? :tags
      
      element[:tags].map { |tag| tag[:name][1..-1] }
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
chutney-1.6.3 lib/chutney/linter/tag_collector.rb
chutney-1.6.2 lib/chutney/linter/tag_collector.rb
chutney-1.6.1 lib/chutney/linter/tag_collector.rb
chutney-1.6.0 lib/chutney/linter/tag_collector.rb
chutney-0.5.0 lib/chutney/linter/tag_collector.rb