Sha256: 0950a46707df8e01658e6ca6ffd3f36be58f7e2ccf7e4f2211633d52d3b00333

Contents?: true

Size: 310 Bytes

Versions: 44

Compression:

Stored size: 310 Bytes

Contents

module Groonga
  class IndexCursor
    class << self
      def open(*arguments)
        cursor = open_raw(*arguments)
        if block_given?
          begin
            yield(cursor)
          ensure
            cursor.close
          end
        else
          cursor
        end
      end
    end
  end
end

Version data entries

44 entries across 44 versions & 1 rubygems

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