Sha256: 238ac2d6c5c9490be455ae5031d4e49cf6661a75abcd9cb6f313caf90bd4dfb8

Contents?: true

Size: 392 Bytes

Versions: 42

Compression:

Stored size: 392 Bytes

Contents

module Groonga
  class Operator
    @values = {}
    class << self
      def register(operator)
        const_set(operator.name, operator)
        @values[operator.value] = operator
      end

      def find(value)
        @values[value]
      end
    end

    attr_reader :name
    attr_reader :value
    def initialize(name, value)
      @name = name
      @value = value
    end
  end
end

Version data entries

42 entries across 42 versions & 1 rubygems

Version Path
rroonga-9.0.7-x64-mingw32 vendor/local/lib/groonga/scripts/ruby/operator.rb
rroonga-9.0.7-x86-mingw32 vendor/local/lib/groonga/scripts/ruby/operator.rb
rroonga-9.0.3-x64-mingw32 vendor/local/lib/groonga/scripts/ruby/operator.rb
rroonga-9.0.3-x86-mingw32 vendor/local/lib/groonga/scripts/ruby/operator.rb
rroonga-9.0.2-x64-mingw32 vendor/local/lib/groonga/scripts/ruby/operator.rb
rroonga-9.0.2-x86-mingw32 vendor/local/lib/groonga/scripts/ruby/operator.rb
rroonga-7.1.1-x64-mingw32 vendor/local/lib/groonga/scripts/ruby/operator.rb
rroonga-7.1.1-x86-mingw32 vendor/local/lib/groonga/scripts/ruby/operator.rb
rroonga-7.0.2-x86-mingw32 vendor/local/lib/groonga/scripts/ruby/operator.rb
rroonga-7.0.2-x64-mingw32 vendor/local/lib/groonga/scripts/ruby/operator.rb
rroonga-6.1.3-x64-mingw32 vendor/local/lib/groonga/scripts/ruby/operator.rb
rroonga-6.1.3-x86-mingw32 vendor/local/lib/groonga/scripts/ruby/operator.rb
rroonga-6.1.0-x86-mingw32 vendor/local/lib/groonga/scripts/ruby/operator.rb
rroonga-6.1.0-x64-mingw32 vendor/local/lib/groonga/scripts/ruby/operator.rb
rroonga-6.0.9-x64-mingw32 vendor/local/lib/groonga/scripts/ruby/operator.rb
rroonga-6.0.9-x86-mingw32 vendor/local/lib/groonga/scripts/ruby/operator.rb
rroonga-6.0.7-x86-mingw32 vendor/local/lib/groonga/scripts/ruby/operator.rb
rroonga-6.0.7-x64-mingw32 vendor/local/lib/groonga/scripts/ruby/operator.rb
rroonga-6.0.5-x64-mingw32 vendor/local/lib/groonga/scripts/ruby/operator.rb
rroonga-6.0.5-x86-mingw32 vendor/local/lib/groonga/scripts/ruby/operator.rb