Sha256: d30c0464a2888e0be9d99f290d3b0543605d8036bc5302c085fde24c20fb91de

Contents?: true

Size: 1.25 KB

Versions: 42

Compression:

Stored size: 1.25 KB

Contents

# -*- coding: utf-8 -*-
#
# Copyright (C) 2011  Kouhei Sutou <kou@clear-code.com>
#
# This library is free software; you can redistribute it and/or
# modify it under the terms of the GNU Lesser General Public
# License version 2.1 as published by the Free Software Foundation.
#
# This library is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
# Lesser General Public License for more details.
#
# You should have received a copy of the GNU Lesser General Public
# License along with this library; if not, write to the Free Software
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA

module Groonga
  module ExpressionBuildable
    class ColumnValueExpressionBuilder
      def !=(other)
        NotEqualExpressionBuilder.new(self, normalize(other))
      end
    end

    # @private
    class NotEqualExpressionBuilder < BinaryExpressionBuilder
      def initialize(column_value_builder, value)
        super(Groonga::Operation::NOT_EQUAL, column_value_builder, value)
      end
    end
  end

  # @private
  class ColumnExpressionBuilder
    def !=(other)
      column_value_builder != other
    end
  end
end

Version data entries

42 entries across 42 versions & 1 rubygems

Version Path
rroonga-5.1.1-x86-mingw32 lib/groonga/expression-builder-19.rb
rroonga-5.1.1-x64-mingw32 lib/groonga/expression-builder-19.rb
rroonga-5.1.1 lib/groonga/expression-builder-19.rb
rroonga-5.0.9-x86-mingw32 lib/groonga/expression-builder-19.rb
rroonga-5.0.9-x64-mingw32 lib/groonga/expression-builder-19.rb
rroonga-5.0.9 lib/groonga/expression-builder-19.rb
rroonga-5.0.8-x86-mingw32 lib/groonga/expression-builder-19.rb
rroonga-5.0.8-x64-mingw32 lib/groonga/expression-builder-19.rb
rroonga-5.0.8 lib/groonga/expression-builder-19.rb
rroonga-5.0.5-x86-mingw32 lib/groonga/expression-builder-19.rb
rroonga-5.0.5-x64-mingw32 lib/groonga/expression-builder-19.rb
rroonga-5.0.5 lib/groonga/expression-builder-19.rb
rroonga-5.0.4-x86-mingw32 lib/groonga/expression-builder-19.rb
rroonga-5.0.4-x64-mingw32 lib/groonga/expression-builder-19.rb
rroonga-5.0.4 lib/groonga/expression-builder-19.rb
rroonga-5.0.3-x86-mingw32 lib/groonga/expression-builder-19.rb
rroonga-5.0.3-x64-mingw32 lib/groonga/expression-builder-19.rb
rroonga-5.0.3 lib/groonga/expression-builder-19.rb
rroonga-5.0.2-x64-mingw32 lib/groonga/expression-builder-19.rb
rroonga-5.0.2-x86-mingw32 lib/groonga/expression-builder-19.rb