Class: InputDataEvent
- Inherits:
-
Object
- Object
- InputDataEvent
- Defined in:
- lib/umbra/field.rb
Overview
—————————————————————————– #
File: field.rb
Description: text input field or
Author: j kepler http://github.com/mare-imbrium/canis/
Date: 2018-03
License: MIT
Last update: 2018-05-17 12:20
—————————————————————————– #
field.rb Copyright (C) 2012-2018 j kepler
Instance Attribute Summary collapse
-
#index0 ⇒ Object
{{{.
-
#index1 ⇒ Object
{{{.
-
#row ⇒ Object
{{{.
-
#source ⇒ Object
{{{.
-
#text ⇒ Object
{{{.
-
#type ⇒ Object
{{{.
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.
14 15 16 17 18 19 20 21 |
# File 'lib/umbra/field.rb', line 14 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
{{{
13 14 15 |
# File 'lib/umbra/field.rb', line 13 def index0 @index0 end |
#index1 ⇒ Object
{{{
13 14 15 |
# File 'lib/umbra/field.rb', line 13 def index1 @index1 end |
#row ⇒ Object
{{{
13 14 15 |
# File 'lib/umbra/field.rb', line 13 def row @row end |
#source ⇒ Object
{{{
13 14 15 |
# File 'lib/umbra/field.rb', line 13 def source @source end |
#text ⇒ Object
{{{
13 14 15 |
# File 'lib/umbra/field.rb', line 13 def text @text end |
#type ⇒ Object
{{{
13 14 15 |
# File 'lib/umbra/field.rb', line 13 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
35 36 37 |
# File 'lib/umbra/field.rb', line 35 def getvalue @source.getvalue end |
#inspect ⇒ Object
27 28 29 30 31 |
# File 'lib/umbra/field.rb', line 27 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
24 25 26 |
# File 'lib/umbra/field.rb', line 24 def to_s inspect end |