Class: RubyCurses::ListDataEvent
Overview
When an event is fired by Listbox, contents are changed, then this object will be passed to trigger shamelessly plugged from a legacy language best unnamed type is CONTENTS_CHANGED, INTERVAL_ADDED, INTERVAL_REMOVED
Instance Attribute Summary collapse
-
#index0 ⇒ Object
Returns the value of attribute index0.
-
#index1 ⇒ Object
Returns the value of attribute index1.
-
#source ⇒ Object
Returns the value of attribute source.
-
#type ⇒ Object
Returns the value of attribute type.
Instance Method Summary collapse
-
#initialize(index0, index1, source, type) ⇒ ListDataEvent
constructor
A new instance of ListDataEvent.
- #inspect ⇒ Object
- #to_s ⇒ Object
Constructor Details
#initialize(index0, index1, source, type) ⇒ ListDataEvent
31 32 33 34 35 36 |
# File 'lib/rbcurse/rlistbox.rb', line 31 def initialize index0, index1, source, type @index0 = index0 @index1 = index1 @source = source @type = type end |
Instance Attribute Details
#index0 ⇒ Object
Returns the value of attribute index0.
30 31 32 |
# File 'lib/rbcurse/rlistbox.rb', line 30 def index0 @index0 end |
#index1 ⇒ Object
Returns the value of attribute index1.
30 31 32 |
# File 'lib/rbcurse/rlistbox.rb', line 30 def index1 @index1 end |
#source ⇒ Object
Returns the value of attribute source.
30 31 32 |
# File 'lib/rbcurse/rlistbox.rb', line 30 def source @source end |
#type ⇒ Object
Returns the value of attribute type.
30 31 32 |
# File 'lib/rbcurse/rlistbox.rb', line 30 def type @type end |