Class: RubyCurses::ListSelectionEvent

Inherits:
Object
  • Object
show all
Defined in:
lib/rbcurse/core/include/listselectable.rb

Overview

mod

selection related collapse

selection related collapse

Constructor Details

#initialize(firstrow, lastrow, source, type) ⇒ ListSelectionEvent

Returns a new instance of ListSelectionEvent.



258
259
260
261
262
263
# File 'lib/rbcurse/core/include/listselectable.rb', line 258

def initialize firstrow, lastrow, source, type
  @firstrow = firstrow
  @lastrow = lastrow
  @source = source
  @type = type
end

Instance Attribute Details

#firstrowObject

Returns the value of attribute firstrow.



257
258
259
# File 'lib/rbcurse/core/include/listselectable.rb', line 257

def firstrow
  @firstrow
end

#lastrowObject

Returns the value of attribute lastrow.



257
258
259
# File 'lib/rbcurse/core/include/listselectable.rb', line 257

def lastrow
  @lastrow
end

#sourceObject

Returns the value of attribute source.



257
258
259
# File 'lib/rbcurse/core/include/listselectable.rb', line 257

def source
  @source
end

#typeObject

Returns the value of attribute type.



257
258
259
# File 'lib/rbcurse/core/include/listselectable.rb', line 257

def type
  @type
end

Instance Method Details

#inspectObject



267
268
269
# File 'lib/rbcurse/core/include/listselectable.rb', line 267

def inspect
  to_s
end

#to_sObject



264
265
266
# File 'lib/rbcurse/core/include/listselectable.rb', line 264

def to_s
  "#{@type.to_s}, firstrow: #{@firstrow}, lastrow: #{@lastrow}, source: #{@source}"
end