Class: RubyCurses::TableTraversalEvent
- Inherits:
-
Object
- Object
- RubyCurses::TableTraversalEvent
- Defined in:
- lib/rbcurse/rtable.rb
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.
1662 1663 1664 |
# File 'lib/rbcurse/rtable.rb', line 1662 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.
1661 1662 1663 |
# File 'lib/rbcurse/rtable.rb', line 1661 def newcol @newcol end |
#newrow ⇒ Object
Returns the value of attribute newrow.
1661 1662 1663 |
# File 'lib/rbcurse/rtable.rb', line 1661 def newrow @newrow end |
#oldcol ⇒ Object
Returns the value of attribute oldcol.
1661 1662 1663 |
# File 'lib/rbcurse/rtable.rb', line 1661 def oldcol @oldcol end |
#oldrow ⇒ Object
Returns the value of attribute oldrow.
1661 1662 1663 |
# File 'lib/rbcurse/rtable.rb', line 1661 def oldrow @oldrow end |
#source ⇒ Object
Returns the value of attribute source.
1661 1662 1663 |
# File 'lib/rbcurse/rtable.rb', line 1661 def source @source end |
Instance Method Details
#inspect ⇒ Object
1671 1672 1673 |
# File 'lib/rbcurse/rtable.rb', line 1671 def inspect to_s end |
#set(oldrow, oldcol, newrow, newcol, source) ⇒ Object
1665 1666 1667 |
# File 'lib/rbcurse/rtable.rb', line 1665 def set oldrow, oldcol, newrow, newcol, source @oldrow, @oldcol, @newrow, @newcol, @source = oldrow, oldcol, newrow, newcol, source end |
#to_s ⇒ Object
1668 1669 1670 |
# File 'lib/rbcurse/rtable.rb', line 1668 def to_s "TRAVERSAL oldrow: #{@oldrow}, oldcol: #{@oldcol}, newrow: #{@newrow}, newcol: #{@newcol}, source: #{@source}" end |