class Tarantool16::SchemaSpace::CallbackWrapper

Public Class Methods

new(space, cb) click to toggle source
# File lib/tarantool16/schema.rb, line 281
def initialize(space, cb)
  @space = space
  @cb = cb
end

Public Instance Methods

call(r) click to toggle source
# File lib/tarantool16/schema.rb, line 286
def call(r)
  if r.ok?
    sp = @space
    r = Option.ok(r.data.map{|row| sp.tuple2hash(row)})
  end
  @cb.call r
end