Debian Codegraph @

storage/mroonga/vendor/groonga/lib/mrb/scripts/index_cursor.rb

raw
1 module Groonga
2 class IndexCursor
3 class << self
4 def open(*arguments)
5 cursor = open_raw(*arguments)
6 if block_given?
7 begin
8 yield(cursor)
9 ensure
10 cursor.close
11 end
12 else
13 cursor
14 end
15 end
16 end
17 end
18 end