Class: Canis::InputDataEvent
- Defined in:
- lib/canis/core/include/rinputdataevent.rb
Instance Attribute Summary collapse
-
#index0 ⇒ Object
Returns the value of attribute index0.
-
#index1 ⇒ Object
Returns the value of attribute index1.
-
#row ⇒ Object
Returns the value of attribute row.
-
#source ⇒ Object
Returns the value of attribute source.
-
#text ⇒ Object
Returns the value of attribute text.
-
#type ⇒ Object
Returns the value of attribute type.
Instance Method Summary collapse
-
#getvalue ⇒ Object
this is so that earlier applications were getting source in the block, not an event.
-
#initialize(index0, index1, source, type, row, text) ⇒ InputDataEvent
constructor
A new instance of InputDataEvent.
- #inspect ⇒ Object
-
#to_s ⇒ Object
until now to_s was returning inspect, but to make it easy for users let us return the value they most expect which is the text that was changed.
Constructor Details
#initialize(index0, index1, source, type, row, text) ⇒ InputDataEvent
Returns a new instance of InputDataEvent.
22 23 24 25 26 27 28 29 |
# File 'lib/canis/core/include/rinputdataevent.rb', line 22 def initialize index0, index1, source, type, row, text @index0 = index0 @index1 = index1 @source = source @type = type @row = row @text = text end |
Instance Attribute Details
#index0 ⇒ Object
Returns the value of attribute index0.
21 22 23 |
# File 'lib/canis/core/include/rinputdataevent.rb', line 21 def index0 @index0 end |
#index1 ⇒ Object
Returns the value of attribute index1.
21 22 23 |
# File 'lib/canis/core/include/rinputdataevent.rb', line 21 def index1 @index1 end |
#row ⇒ Object
Returns the value of attribute row.
21 22 23 |
# File 'lib/canis/core/include/rinputdataevent.rb', line 21 def row @row end |
#source ⇒ Object
Returns the value of attribute source.
21 22 23 |
# File 'lib/canis/core/include/rinputdataevent.rb', line 21 def source @source end |
#text ⇒ Object
Returns the value of attribute text.
21 22 23 |
# File 'lib/canis/core/include/rinputdataevent.rb', line 21 def text @text end |
#type ⇒ Object
Returns the value of attribute type.
21 22 23 |
# File 'lib/canis/core/include/rinputdataevent.rb', line 21 def type @type end |
Instance Method Details
#getvalue ⇒ Object
this is so that earlier applications were getting source in the block, not an event. they were doing a fld.getvalue, so we must keep those apps running
43 44 45 |
# File 'lib/canis/core/include/rinputdataevent.rb', line 43 def getvalue @source.getvalue end |
#inspect ⇒ Object
35 36 37 38 39 |
# File 'lib/canis/core/include/rinputdataevent.rb', line 35 def inspect ## now that textarea.to_s prints content we shouldn pass it here. #"#{@type.to_s}, #{@source}, ind0:#{@index0}, ind1:#{@index1}, row:#{@row}, text:#{@text}" "#{@type.to_s}, ind0:#{@index0}, ind1:#{@index1}, row:#{@row}, text:#{@text}" end |
#to_s ⇒ Object
until now to_s was returning inspect, but to make it easy for users let us return the value they most expect which is the text that was changed
32 33 34 |
# File 'lib/canis/core/include/rinputdataevent.rb', line 32 def to_s inspect end |