Sha256: 8b1b18397d10137c073f20b055d3d63b1b248e162d20caa048747bb457748ffc

Contents?: true

Size: 1.24 KB

Versions: 72

Compression:

Stored size: 1.24 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., 59 Temple Place, Suite 330, Boston, MA  02111-1307  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

72 entries across 72 versions & 1 rubygems

Version Path
rroonga-4.0.3-x86-mingw32 lib/groonga/expression-builder-19.rb
rroonga-4.0.3-x64-mingw32 lib/groonga/expression-builder-19.rb
rroonga-4.0.3 lib/groonga/expression-builder-19.rb
rroonga-4.0.2-x64-mingw32 lib/groonga/expression-builder-19.rb
rroonga-4.0.2-x86-mingw32 lib/groonga/expression-builder-19.rb
rroonga-4.0.2 lib/groonga/expression-builder-19.rb
rroonga-4.0.1-x86-mingw32 lib/groonga/expression-builder-19.rb
rroonga-4.0.1-x64-mingw32 lib/groonga/expression-builder-19.rb
rroonga-4.0.1 lib/groonga/expression-builder-19.rb
rroonga-4.0.0-x64-mingw32 lib/groonga/expression-builder-19.rb
rroonga-4.0.0-x86-mingw32 lib/groonga/expression-builder-19.rb
rroonga-4.0.0 lib/groonga/expression-builder-19.rb
rroonga-3.1.2-x64-mingw32 lib/groonga/expression-builder-19.rb
rroonga-3.1.2-x86-mingw32 lib/groonga/expression-builder-19.rb
rroonga-3.1.2 lib/groonga/expression-builder-19.rb
rroonga-3.1.1-x64-mingw32 lib/groonga/expression-builder-19.rb
rroonga-3.1.1-x86-mingw32 lib/groonga/expression-builder-19.rb
rroonga-3.1.1 lib/groonga/expression-builder-19.rb
rroonga-3.1.0-x64-mingw32 lib/groonga/expression-builder-19.rb
rroonga-3.1.0-x86-mingw32 lib/groonga/expression-builder-19.rb