Class: Gutentag::TagNames

Inherits:
Object
  • Object
show all
Defined in:
lib/gutentag/tag_names.rb

Class Method Summary collapse

Class Method Details

.call(names) ⇒ Object



4
5
6
7
8
9
10
# File 'lib/gutentag/tag_names.rb', line 4

def self.call(names)
  return nil if names.nil?

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