Class: Coopy::TableText

Inherits:
Object
  • Object
show all
Defined in:
lib/coopy/table_text.rb

Instance Method Summary collapse

Constructor Details

#initialize(rows) ⇒ TableText

Returns a new instance of TableText.



4
5
6
7
# File 'lib/coopy/table_text.rb', line 4

def initialize(rows)
  @rows = rows
  @view = rows.get_cell_view
end

Instance Method Details

#get_cell_text(x, y) ⇒ Object



9
10
11
# File 'lib/coopy/table_text.rb', line 9

def get_cell_text(x, y)
  @view.to_s(@rows.get_cell(x,y))
end