Class: RubyCurses::TableTraversalEvent
Overview
caller can create one and reuse NOTE TODO
Instance Attribute Summary collapse
-
#newcol ⇒ Object
Returns the value of attribute newcol.
-
#newrow ⇒ Object
Returns the value of attribute newrow.
-
#oldcol ⇒ Object
Returns the value of attribute oldcol.
-
#oldrow ⇒ Object
Returns the value of attribute oldrow.
-
#source ⇒ Object
Returns the value of attribute source.
Instance Method Summary collapse
-
#initialize(oldrow, oldcol, newrow, newcol, source) ⇒ TableTraversalEvent
constructor
A new instance of TableTraversalEvent.
- #inspect ⇒ Object
- #set(oldrow, oldcol, newrow, newcol, source) ⇒ Object
- #to_s ⇒ Object
Constructor Details
#initialize(oldrow, oldcol, newrow, newcol, source) ⇒ TableTraversalEvent
Returns a new instance of TableTraversalEvent.
1690 1691 1692 |
# File 'lib/rbcurse/rtable.rb', line 1690 def initialize oldrow, oldcol, newrow, newcol, source @oldrow, @oldcol, @newrow, @newcol, @source = oldrow, oldcol, newrow, newcol, source end |
Instance Attribute Details
#newcol ⇒ Object
Returns the value of attribute newcol.
1689 1690 1691 |
# File 'lib/rbcurse/rtable.rb', line 1689 def newcol @newcol end |
#newrow ⇒ Object
Returns the value of attribute newrow.
1689 1690 1691 |
# File 'lib/rbcurse/rtable.rb', line 1689 def newrow @newrow end |
#oldcol ⇒ Object
Returns the value of attribute oldcol.
1689 1690 1691 |
# File 'lib/rbcurse/rtable.rb', line 1689 def oldcol @oldcol end |
#oldrow ⇒ Object
Returns the value of attribute oldrow.
1689 1690 1691 |
# File 'lib/rbcurse/rtable.rb', line 1689 def oldrow @oldrow end |
#source ⇒ Object
Returns the value of attribute source.
1689 1690 1691 |
# File 'lib/rbcurse/rtable.rb', line 1689 def source @source end |
Instance Method Details
#inspect ⇒ Object
1699 1700 1701 |
# File 'lib/rbcurse/rtable.rb', line 1699 def inspect to_s end |
#set(oldrow, oldcol, newrow, newcol, source) ⇒ Object
1693 1694 1695 |
# File 'lib/rbcurse/rtable.rb', line 1693 def set oldrow, oldcol, newrow, newcol, source @oldrow, @oldcol, @newrow, @newcol, @source = oldrow, oldcol, newrow, newcol, source end |
#to_s ⇒ Object
1696 1697 1698 |
# File 'lib/rbcurse/rtable.rb', line 1696 def to_s "TRAVERSAL oldrow: #{@oldrow}, oldcol: #{@oldcol}, newrow: #{@newrow}, newcol: #{@newcol}, source: #{@source}" end |