Method: MarkLogic::Queries::WordQuery#initialize
- Defined in:
- lib/marklogic/queries/word_query.rb
#initialize(values, options = {}) ⇒ WordQuery
Returns a new instance of WordQuery.
4 5 6 7 8 9 |
# File 'lib/marklogic/queries/word_query.rb', line 4 def initialize(values, = {}) @values = values = || {} @weight = .delete(:weight) || 1.0 [:exact] = true if .length == 0 end |