class Canis::InputDataEvent

Attributes

index0[RW]
index1[RW]
row[RW]
source[RW]
text[RW]
type[RW]

Public Class Methods

new(index0, index1, source, type, row, text) click to toggle source
# 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

Public Instance Methods

getvalue() click to toggle source

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 @since 1.2.0 added 2010-09-11 12:25

# File lib/canis/core/include/rinputdataevent.rb, line 43
def getvalue
  @source.getvalue
end
inspect() click to toggle source
# 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() click to toggle source

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

# File lib/canis/core/include/rinputdataevent.rb, line 32
def to_s
  inspect
end