Class: RubyCurses::ListSelectionEvent
- Inherits:
-
Object
- Object
- RubyCurses::ListSelectionEvent
- Defined in:
- lib/rbcurse/listselectable.rb
Instance Attribute Summary collapse
-
#firstrow ⇒ Object
Returns the value of attribute firstrow.
-
#lastrow ⇒ Object
Returns the value of attribute lastrow.
-
#source ⇒ Object
Returns the value of attribute source.
-
#type ⇒ Object
Returns the value of attribute type.
Instance Method Summary collapse
-
#initialize(firstrow, lastrow, source, type) ⇒ ListSelectionEvent
constructor
A new instance of ListSelectionEvent.
- #inspect ⇒ Object
- #to_s ⇒ Object
Constructor Details
#initialize(firstrow, lastrow, source, type) ⇒ ListSelectionEvent
Returns a new instance of ListSelectionEvent.
75 76 77 78 79 80 |
# File 'lib/rbcurse/listselectable.rb', line 75 def initialize firstrow, lastrow, source, type @firstrow = firstrow @lastrow = lastrow @source = source @type = type end |
Instance Attribute Details
#firstrow ⇒ Object
Returns the value of attribute firstrow.
74 75 76 |
# File 'lib/rbcurse/listselectable.rb', line 74 def firstrow @firstrow end |
#lastrow ⇒ Object
Returns the value of attribute lastrow.
74 75 76 |
# File 'lib/rbcurse/listselectable.rb', line 74 def lastrow @lastrow end |
#source ⇒ Object
Returns the value of attribute source.
74 75 76 |
# File 'lib/rbcurse/listselectable.rb', line 74 def source @source end |
#type ⇒ Object
Returns the value of attribute type.
74 75 76 |
# File 'lib/rbcurse/listselectable.rb', line 74 def type @type end |
Instance Method Details
#inspect ⇒ Object
84 85 86 |
# File 'lib/rbcurse/listselectable.rb', line 84 def inspect to_s end |
#to_s ⇒ Object
81 82 83 |
# File 'lib/rbcurse/listselectable.rb', line 81 def to_s "#{@type.to_s}, firstrow: #{@firstrow}, lastrow: #{@lastrow}, source: #{@source}" end |