Module: Groovy::Model::PatriciaTrieTable::ClassMethods
- Extended by:
- Forwardable
- Defined in:
- lib/groovy/model.rb
Instance Method Summary collapse
- #each_near(str, options = {}, &block) ⇒ Object
- #each_with_prefix(prefix, options = {}, &block) ⇒ Object
Instance Method Details
#each_near(str, options = {}, &block) ⇒ Object
366 367 368 369 370 |
# File 'lib/groovy/model.rb', line 366 def each_near(str, = {}, &block) table.open_near_cursor(str, ) do |cursor| cursor.each { |r| yield r } end end |
#each_with_prefix(prefix, options = {}, &block) ⇒ Object
360 361 362 363 364 |
# File 'lib/groovy/model.rb', line 360 def each_with_prefix(prefix, = {}, &block) table.open_prefix_cursor(prefix, ) do |cursor| cursor.each { |r| yield r } end end |