Class: Gutentag::TaggedWith::NameQuery

Inherits:
Query
  • Object
show all
Defined in:
lib/gutentag/tagged_with/name_query.rb

Instance Method Summary collapse

Methods inherited from Query

#call

Constructor Details

#initialize(model, values, match) ⇒ NameQuery

Returns a new instance of NameQuery.



4
5
6
7
8
# File 'lib/gutentag/tagged_with/name_query.rb', line 4

def initialize(model, values, match)
  super

  @values = @values.collect { |tag| Gutentag.normaliser.call(tag) }
end