Class: PPCurses::MultipleColumnDataSource
- Inherits:
-
SingleColumnDataSource
- Object
- SingleColumnDataSource
- PPCurses::MultipleColumnDataSource
- Defined in:
- lib/ppcurses/table_view.rb
Overview
Values in the constructor is expected to be a two sided array
Instance Method Summary collapse
-
#object_value_for(aTableview, column, row_index) ⇒ Object
Called by the table view to return the data object associated with the specified row and column.
Methods inherited from SingleColumnDataSource
#initialize, #number_of_rows_in_table
Constructor Details
This class inherits a constructor from PPCurses::SingleColumnDataSource
Instance Method Details
#object_value_for(aTableview, column, row_index) ⇒ Object
Called by the table view to return the data object associated with the specified row and column.
202 203 204 |
# File 'lib/ppcurses/table_view.rb', line 202 def object_value_for(aTableview, column, row_index) @values[row_index][column] end |