Class: Gutentag::TaggedWith::NameQuery
- Defined in:
- lib/gutentag/tagged_with/name_query.rb
Instance Method Summary collapse
-
#initialize(model, values, match) ⇒ NameQuery
constructor
A new instance of NameQuery.
Methods inherited from Query
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 |