Class: RubyCurses::TableTraversalEvent

Inherits:
Object
  • Object
show all
Defined in:
lib/rbcurse/rtable.rb

Overview

caller can create one and reuse NOTE TODO

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(oldrow, oldcol, newrow, newcol, source) ⇒ TableTraversalEvent

Returns a new instance of TableTraversalEvent.



1628
1629
1630
# File 'lib/rbcurse/rtable.rb', line 1628

def initialize oldrow, oldcol, newrow, newcol, source
  @oldrow, @oldcol, @newrow, @newcol, @source = oldrow, oldcol, newrow, newcol, source
end

Instance Attribute Details

#newcolObject

Returns the value of attribute newcol.



1627
1628
1629
# File 'lib/rbcurse/rtable.rb', line 1627

def newcol
  @newcol
end

#newrowObject

Returns the value of attribute newrow.



1627
1628
1629
# File 'lib/rbcurse/rtable.rb', line 1627

def newrow
  @newrow
end

#oldcolObject

Returns the value of attribute oldcol.



1627
1628
1629
# File 'lib/rbcurse/rtable.rb', line 1627

def oldcol
  @oldcol
end

#oldrowObject

Returns the value of attribute oldrow.



1627
1628
1629
# File 'lib/rbcurse/rtable.rb', line 1627

def oldrow
  @oldrow
end

#sourceObject

Returns the value of attribute source.



1627
1628
1629
# File 'lib/rbcurse/rtable.rb', line 1627

def source
  @source
end

Instance Method Details

#inspectObject



1637
1638
1639
# File 'lib/rbcurse/rtable.rb', line 1637

def inspect
  to_s
end

#set(oldrow, oldcol, newrow, newcol, source) ⇒ Object



1631
1632
1633
# File 'lib/rbcurse/rtable.rb', line 1631

def set oldrow, oldcol, newrow, newcol, source
  @oldrow, @oldcol, @newrow, @newcol, @source = oldrow, oldcol, newrow, newcol, source
end

#to_sObject



1634
1635
1636
# File 'lib/rbcurse/rtable.rb', line 1634

def to_s
  "TRAVERSAL oldrow: #{@oldrow}, oldcol: #{@oldcol}, newrow: #{@newrow}, newcol: #{@newcol}, source: #{@source}"
end