Class: RubyCurses::ListSelectionEvent
- Defined in:
- lib/rbcurse/core/include/listselectable.rb
Overview
mod
selection related 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.
selection related 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.
251 252 253 254 255 256 |
# File 'lib/rbcurse/core/include/listselectable.rb', line 251 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.
250 251 252 |
# File 'lib/rbcurse/core/include/listselectable.rb', line 250 def firstrow @firstrow end |
#lastrow ⇒ Object
Returns the value of attribute lastrow.
250 251 252 |
# File 'lib/rbcurse/core/include/listselectable.rb', line 250 def lastrow @lastrow end |
#source ⇒ Object
Returns the value of attribute source.
250 251 252 |
# File 'lib/rbcurse/core/include/listselectable.rb', line 250 def source @source end |
#type ⇒ Object
Returns the value of attribute type.
250 251 252 |
# File 'lib/rbcurse/core/include/listselectable.rb', line 250 def type @type end |
Instance Method Details
#inspect ⇒ Object
260 261 262 |
# File 'lib/rbcurse/core/include/listselectable.rb', line 260 def inspect to_s end |
#to_s ⇒ Object
257 258 259 |
# File 'lib/rbcurse/core/include/listselectable.rb', line 257 def to_s "#{@type.to_s}, firstrow: #{@firstrow}, lastrow: #{@lastrow}, source: #{@source}" end |