Class: RubyCurses::TableEditingEvent

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(row, col, source, oldvalue, newvalue, type) ⇒ TableEditingEvent

Returns a new instance of TableEditingEvent.



1644
1645
1646
# File 'lib/rbcurse/rtable.rb', line 1644

def initialize row, col, source, oldvalue, newvalue, type
  set row, col, source, oldvalue, newvalue, type
end

Instance Attribute Details

#colObject

Returns the value of attribute col.



1643
1644
1645
# File 'lib/rbcurse/rtable.rb', line 1643

def col
  @col
end

#newvalueObject

Returns the value of attribute newvalue.



1643
1644
1645
# File 'lib/rbcurse/rtable.rb', line 1643

def newvalue
  @newvalue
end

#oldvalueObject

Returns the value of attribute oldvalue.



1643
1644
1645
# File 'lib/rbcurse/rtable.rb', line 1643

def oldvalue
  @oldvalue
end

#rowObject

Returns the value of attribute row.



1643
1644
1645
# File 'lib/rbcurse/rtable.rb', line 1643

def row
  @row
end

#sourceObject

Returns the value of attribute source.



1643
1644
1645
# File 'lib/rbcurse/rtable.rb', line 1643

def source
  @source
end

#typeObject

Returns the value of attribute type.



1643
1644
1645
# File 'lib/rbcurse/rtable.rb', line 1643

def type
  @type
end

Instance Method Details

#inspectObject



1653
1654
1655
# File 'lib/rbcurse/rtable.rb', line 1653

def inspect
  to_s
end

#set(row, col, source, oldvalue, newvalue, type) ⇒ Object



1647
1648
1649
# File 'lib/rbcurse/rtable.rb', line 1647

def set row, col, source, oldvalue, newvalue, type
  @row, @col, @source, @oldvalue, @newvalue, @type = row, col, source, oldvalue, newvalue, type
end

#to_sObject



1650
1651
1652
# File 'lib/rbcurse/rtable.rb', line 1650

def to_s
  "TABLEDITING #{@type} row: #{@row}, col: #{@col}, oldval: #{@oldvalue}, newvalue: #{@newvalue}, source: #{@source}"
end