Class: QueryStringSearch::MatcherFactory
- Inherits:
-
Object
- Object
- QueryStringSearch::MatcherFactory
- Defined in:
- lib/query_string_search/matcher_factory.rb
Class Method Summary collapse
Class Method Details
.build(query_option, build_options) ⇒ Object
3 4 5 6 7 8 9 |
# File 'lib/query_string_search/matcher_factory.rb', line 3 def self.build(query_option, ) constructor = .detect { |m| m.build_me?(query_option.search_type, query_option.search_param) } if constructor constructor.new(query_option.search_type, query_option.search_param) end end |