Method: BufferCursor#push

Defined in:
lib/innodb/util/buffer_cursor.rb

#push(position = nil) ⇒ Object

Save the current cursor position and start a new (nested, stacked) cursor.



183
184
185
186
187
188
# File 'lib/innodb/util/buffer_cursor.rb', line 183

def push(position = nil)
  @stack.push current.dup
  seek(position)

  self
end