Class: RubyCurses::ListSelectionEvent

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

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#firstrowObject

Returns the value of attribute firstrow.



74
75
76
# File 'lib/rbcurse/listselectable.rb', line 74

def firstrow
  @firstrow
end

#lastrowObject

Returns the value of attribute lastrow.



74
75
76
# File 'lib/rbcurse/listselectable.rb', line 74

def lastrow
  @lastrow
end

#sourceObject

Returns the value of attribute source.



74
75
76
# File 'lib/rbcurse/listselectable.rb', line 74

def source
  @source
end

#typeObject

Returns the value of attribute type.



74
75
76
# File 'lib/rbcurse/listselectable.rb', line 74

def type
  @type
end

Instance Method Details

#inspectObject



84
85
86
# File 'lib/rbcurse/listselectable.rb', line 84

def inspect
  to_s
end

#to_sObject



81
82
83
# File 'lib/rbcurse/listselectable.rb', line 81

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