Class: Workbook::Sheet
- Inherits:
-
Array
- Object
- Array
- Workbook::Sheet
- Defined in:
- lib/workbook/sheet.rb
Instance Attribute Summary (collapse)
-
- (Workbook::Book) book
Returns the book this sheet belongs to.
Instance Method Summary (collapse)
-
- (Boolean) has_contents?
Returns true if the first table of this sheet contains anything.
-
- (Workbook::Sheet) initialize(table = Workbook::Table.new([], self), book = nil, options = {})
constructor
Initialize a new sheet.
-
- (Workbook::Table) table
Returns the first table of this sheet.
Constructor Details
- (Workbook::Sheet) initialize(table = Workbook::Table.new([], self), book = nil, options = {})
Initialize a new sheet
12 |
# File 'lib/workbook/sheet.rb', line 12 def initialize table=Workbook::Table.new([], self), book=nil, ={} |
Instance Attribute Details
- (Workbook::Book) book
Returns the book this sheet belongs to
4 5 6 |
# File 'lib/workbook/sheet.rb', line 4 def book @book end |
Instance Method Details
- (Boolean) has_contents?
Returns true if the first table of this sheet contains anything
25 26 27 |
# File 'lib/workbook/sheet.rb', line 25 def has_contents? table.has_contents? end |
- (Workbook::Table) table
Returns the first table of this sheet
32 33 34 |
# File 'lib/workbook/sheet.rb', line 32 def table first end |