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.



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

#newcolObject

Returns the value of attribute newcol.



1689
1690
1691
# File 'lib/rbcurse/rtable.rb', line 1689

def newcol
  @newcol
end

#newrowObject

Returns the value of attribute newrow.



1689
1690
1691
# File 'lib/rbcurse/rtable.rb', line 1689

def newrow
  @newrow
end

#oldcolObject

Returns the value of attribute oldcol.



1689
1690
1691
# File 'lib/rbcurse/rtable.rb', line 1689

def oldcol
  @oldcol
end

#oldrowObject

Returns the value of attribute oldrow.



1689
1690
1691
# File 'lib/rbcurse/rtable.rb', line 1689

def oldrow
  @oldrow
end

#sourceObject

Returns the value of attribute source.



1689
1690
1691
# File 'lib/rbcurse/rtable.rb', line 1689

def source
  @source
end

Instance Method Details

#inspectObject



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_sObject



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