Class: RubyCurses::ListDataEvent
- Inherits:
-
Object
- Object
- RubyCurses::ListDataEvent
- Defined in:
- lib/rbcurse/rlistbox.rb
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
Returns a new instance of ListDataEvent.
28 29 30 31 32 33 |
# File 'lib/rbcurse/rlistbox.rb', line 28 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.
27 28 29 |
# File 'lib/rbcurse/rlistbox.rb', line 27 def index0 @index0 end |
#index1 ⇒ Object
Returns the value of attribute index1.
27 28 29 |
# File 'lib/rbcurse/rlistbox.rb', line 27 def index1 @index1 end |
#source ⇒ Object
Returns the value of attribute source.
27 28 29 |
# File 'lib/rbcurse/rlistbox.rb', line 27 def source @source end |
#type ⇒ Object
Returns the value of attribute type.
27 28 29 |
# File 'lib/rbcurse/rlistbox.rb', line 27 def type @type end |
Instance Method Details
#inspect ⇒ Object
37 38 39 |
# File 'lib/rbcurse/rlistbox.rb', line 37 def inspect "#{@type.to_s}, #{@source}, #{@index0}, #{@index1}" end |
#to_s ⇒ Object
34 35 36 |
# File 'lib/rbcurse/rlistbox.rb', line 34 def to_s "#{@type.to_s}, #{@source}, #{@index0}, #{@index1}" end |