Class: MatchAll

Inherits:
QueryStringSearch::AbstractMatcher show all
Defined in:
lib/query_string_search/matchers/match_all.rb

Instance Attribute Summary

Attributes inherited from QueryStringSearch::AbstractMatcher

#attribute, #desired_value, #operator

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from QueryStringSearch::AbstractMatcher

all_reserved_words, #comparison, descendants, matchers, reserved_words

Class Method Details

.build_me?(search_option) ⇒ Boolean

Returns:

  • (Boolean)


6
7
8
# File 'lib/query_string_search/matchers/match_all.rb', line 6

def self.build_me?(search_option)
  search_option.attribute.nil? && search_option.desired_value.nil?
end

Instance Method Details

#match?(_) ⇒ Boolean

Returns:

  • (Boolean)


2
3
4
# File 'lib/query_string_search/matchers/match_all.rb', line 2

def match?(_)
  true
end