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.



1678
1679
1680
# File 'lib/rbcurse/rtable.rb', line 1678

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.



1677
1678
1679
# File 'lib/rbcurse/rtable.rb', line 1677

def col
  @col
end

#newvalueObject

Returns the value of attribute newvalue.



1677
1678
1679
# File 'lib/rbcurse/rtable.rb', line 1677

def newvalue
  @newvalue
end

#oldvalueObject

Returns the value of attribute oldvalue.



1677
1678
1679
# File 'lib/rbcurse/rtable.rb', line 1677

def oldvalue
  @oldvalue
end

#rowObject

Returns the value of attribute row.



1677
1678
1679
# File 'lib/rbcurse/rtable.rb', line 1677

def row
  @row
end

#sourceObject

Returns the value of attribute source.



1677
1678
1679
# File 'lib/rbcurse/rtable.rb', line 1677

def source
  @source
end

#typeObject

Returns the value of attribute type.



1677
1678
1679
# File 'lib/rbcurse/rtable.rb', line 1677

def type
  @type
end

Instance Method Details

#inspectObject



1687
1688
1689
# File 'lib/rbcurse/rtable.rb', line 1687

def inspect
  to_s
end

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



1681
1682
1683
# File 'lib/rbcurse/rtable.rb', line 1681

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

#to_sObject



1684
1685
1686
# File 'lib/rbcurse/rtable.rb', line 1684

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