class BufferCursor::StackEntry
An entry in a stack of cursors. The cursor position, direction, and name array are each attributes of the current cursor stack and are manipulated together.
Attributes
cursor[RW]
direction[RW]
name[RW]
position[RW]
Public Class Methods
new(cursor, position = 0, direction = :forward, name = nil)
click to toggle source
# File lib/innodb/util/buffer_cursor.rb, line 20 def initialize(cursor, position = 0, direction = :forward, name = nil) @cursor = cursor @position = position @direction = direction @name = name || [] end
Public Instance Methods
dup()
click to toggle source
# File lib/innodb/util/buffer_cursor.rb, line 35 def dup StackEntry.new(cursor, position, direction, name.dup) end
inspect()
click to toggle source
# File lib/innodb/util/buffer_cursor.rb, line 27 def inspect "<%s direction=%s position=%s>" % [ self.class.name, @direction.inspect, @position, ] end