Sha256: c412d39599bf07f432f1199f3f9576f95e8cd348312f5407dec5211012487ed3

Contents?: true

Size: 214 Bytes

Versions: 7

Compression:

Stored size: 214 Bytes

Contents

# frozen_string_literal: true

class Gutentag::TagNames
  def self.call(names)
    return nil if names.nil?

    names.reject(&:blank?).uniq.collect do |name|
      Gutentag.normaliser.call(name)
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
gutentag-2.6.2 lib/gutentag/tag_names.rb
gutentag-2.6.1 lib/gutentag/tag_names.rb
gutentag-2.6.0 lib/gutentag/tag_names.rb
gutentag-2.5.4 lib/gutentag/tag_names.rb
gutentag-2.5.3 lib/gutentag/tag_names.rb
gutentag-2.5.2 lib/gutentag/tag_names.rb
gutentag-2.5.1 lib/gutentag/tag_names.rb