Class: Cartos::Spreadsheet::Sheet
- Inherits:
-
Object
- Object
- Cartos::Spreadsheet::Sheet
- Defined in:
- lib/cartos/spreadsheet/sheets/sheet.rb
Direct Known Subclasses
Instance Method Summary collapse
-
#initialize(sheet) ⇒ Sheet
constructor
A new instance of Sheet.
- #push_row(column, value) ⇒ Object
- #save ⇒ Object
- #set_row(column, row, value) ⇒ Object
Constructor Details
#initialize(sheet) ⇒ Sheet
Returns a new instance of Sheet.
4 5 6 |
# File 'lib/cartos/spreadsheet/sheets/sheet.rb', line 4 def initialize(sheet) @sheet = sheet end |
Instance Method Details
#push_row(column, value) ⇒ Object
8 9 10 |
# File 'lib/cartos/spreadsheet/sheets/sheet.rb', line 8 def push_row(column, value) @sheet.push_row column, value end |
#save ⇒ Object
16 17 18 |
# File 'lib/cartos/spreadsheet/sheets/sheet.rb', line 16 def save @sheet.save end |
#set_row(column, row, value) ⇒ Object
12 13 14 |
# File 'lib/cartos/spreadsheet/sheets/sheet.rb', line 12 def set_row(column, row, value) @sheet.set_row column, row, value end |