Class: Groonga::ExpressionBuildable::MatchTargetExpressionBuilder
- Inherits:
-
ExpressionBuilder
- Object
- ExpressionBuilder
- Groonga::ExpressionBuildable::MatchTargetExpressionBuilder
- Defined in:
- lib/groonga/expression-builder.rb
Instance Method Summary collapse
- #=~(query) ⇒ Object
- #build(expression, variable) ⇒ Object
-
#initialize(target) ⇒ MatchTargetExpressionBuilder
constructor
A new instance of MatchTargetExpressionBuilder.
Methods inherited from ExpressionBuilder
Constructor Details
#initialize(target) ⇒ MatchTargetExpressionBuilder
Returns a new instance of MatchTargetExpressionBuilder.
286 287 288 289 |
# File 'lib/groonga/expression-builder.rb', line 286 def initialize(target) super() @target = target end |
Instance Method Details
#=~(query) ⇒ Object
297 298 299 300 301 302 |
# File 'lib/groonga/expression-builder.rb', line 297 def =~(query) if query.nil? raise ArgumentError, "match word should not be nil" end MatchExpressionBuilder.new(self, query) end |