Kouhei Sutou
null+****@clear*****
Thu Apr 13 13:19:36 JST 2017
Kouhei Sutou 2017-04-13 13:19:36 +0900 (Thu, 13 Apr 2017) New Revision: 945543f0eab9f0bca74b38f614392272ca735e96 https://github.com/ranguba/groonga-client/commit/945543f0eab9f0bca74b38f614392272ca735e96 Message: Add since Modified files: lib/groonga/client/request/select.rb Modified: lib/groonga/client/request/select.rb (+9 -6) =================================================================== --- lib/groonga/client/request/select.rb 2017-04-13 13:18:36 +0900 (8c6dc1a) +++ lib/groonga/client/request/select.rb 2017-04-13 13:19:36 +0900 (f305ce9) @@ -91,6 +91,8 @@ module Groonga # # @return [Groonga::Client::Request::Select::Filter] # The new request object for setting a filter condition. + # + # @since 0.4.3 def filter(expression_or_column_name=nil, values_or_value=nil) if expression_or_column_name.nil? and values_or_value.nil? return Filter.new(self) @@ -170,17 +172,18 @@ module Groonga parameters.key?(:offset) and parameters.key?(:limit) end + # @since 0.4.3 class Filter def initialize(request) @request = request end - # @example: Use in_values function - # request. - # filter.in_values("tags", "tag1", "tag2"). - # # -> --filter 'in_values(tags, "tag1", "tag2")' - # filter("user", "alice") - # # -> --filter '(in_values(tags, "tag1", "tag2")) && (user == "alice")' + # @example: Use in_values function + # request. + # filter.in_values("tags", "tag1", "tag2"). + # # -> --filter 'in_values(tags, "tag1", "tag2")' + # filter("user", "alice") + # # -> --filter '(in_values(tags, "tag1", "tag2")) && (user == "alice")' # # @param [String, Symbol] column_name The target column name. # -------------- next part -------------- HTML����������������������������... Download