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.



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

#newcolObject

Returns the value of attribute newcol.



1661
1662
1663
# File 'lib/rbcurse/rtable.rb', line 1661

def newcol
  @newcol
end

#newrowObject

Returns the value of attribute newrow.



1661
1662
1663
# File 'lib/rbcurse/rtable.rb', line 1661

def newrow
  @newrow
end

#oldcolObject

Returns the value of attribute oldcol.



1661
1662
1663
# File 'lib/rbcurse/rtable.rb', line 1661

def oldcol
  @oldcol
end

#oldrowObject

Returns the value of attribute oldrow.



1661
1662
1663
# File 'lib/rbcurse/rtable.rb', line 1661

def oldrow
  @oldrow
end

#sourceObject

Returns the value of attribute source.



1661
1662
1663
# File 'lib/rbcurse/rtable.rb', line 1661

def source
  @source
end

Instance Method Details

#inspectObject



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_sObject



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