Class: Coopy::TableText
- Inherits:
-
Object
- Object
- Coopy::TableText
- Defined in:
- lib/lib/coopy/table_text.rb
Instance Method Summary collapse
- #get_cell_text(x, y) ⇒ Object
-
#initialize(rows) ⇒ TableText
constructor
A new instance of TableText.
Constructor Details
#initialize(rows) ⇒ TableText
Returns a new instance of TableText.
7 8 9 10 |
# File 'lib/lib/coopy/table_text.rb', line 7 def initialize(rows) @rows = rows @view = rows.get_cell_view end |
Instance Method Details
#get_cell_text(x, y) ⇒ Object
19 20 21 |
# File 'lib/lib/coopy/table_text.rb', line 19 def get_cell_text(x,y) return @view.to_s(@rows.get_cell(x,y)) end |