Class: Cartos::Spreadsheet::Sheet

Inherits:
Object
  • Object
show all
Defined in:
lib/cartos/spreadsheet/sheets/sheet.rb

Direct Known Subclasses

Summary

Instance Method Summary collapse

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

#saveObject



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