Module: Doing::ItemQuery
- Included in:
- Item
- Defined in:
- lib/doing/item/query.rb
Overview
Tag and search filtering for a Doing entry
Instance Method Summary collapse
- #highlight_search(search, distance: nil, negate: false, case_type: nil) ⇒ Object
-
#ignore_case(search, case_type) ⇒ Boolean
Determine if case should be ignored for searches.
-
#keep_item?(opt) ⇒ Boolean
Used by filter_items determine whether an item matches a set of criteria.
-
#search(search, distance: nil, negate: false, case_type: nil) ⇒ Boolean
Test if item matches search string.
-
#tag_values?(queries, bool = :and, negate: false) ⇒ Boolean
Test if item matches tag values.
-
#tags?(tags, bool = :and, negate: false) ⇒ Boolean
Test if item contains tag(s).
Instance Method Details
#highlight_search(search, distance: nil, negate: false, case_type: nil) ⇒ Object
#ignore_case(search, case_type) ⇒ Boolean
Determine if case should be ignored for searches
#keep_item?(opt) ⇒ Boolean
Used by filter_items determine whether an item matches a set of criteria
#search(search, distance: nil, negate: false, case_type: nil) ⇒ Boolean
Test if item matches search string
#tag_values?(queries, bool = :and, negate: false) ⇒ Boolean
Test if item matches tag values
#tags?(tags, bool = :and, negate: false) ⇒ Boolean
Test if item contains tag(s)