Class: Workbook::Sheet
- Inherits:
-
Array
- Object
- Array
- Workbook::Sheet
- Defined in:
- lib/workbook/sheet.rb
Instance Attribute Summary (collapse)
-
- (Object) book
Returns the value of attribute book.
Instance Method Summary (collapse)
- - (Boolean) has_contents?
-
- (Sheet) initialize(table = Workbook::Table.new([], self), book = nil, options = {})
constructor
A new instance of Sheet.
- - (Object) table
Constructor Details
- (Sheet) initialize(table = Workbook::Table.new([], self), book = nil, options = {})
A new instance of Sheet
5 6 7 8 9 10 11 12 |
# File 'lib/workbook/sheet.rb', line 5 def initialize table=Workbook::Table.new([], self), book=nil, ={} if table.is_a? Workbook::Table push table else push Workbook::Table.new(table, self, ) end self.book = book end |
Instance Attribute Details
- (Object) book
Returns the value of attribute book
3 4 5 |
# File 'lib/workbook/sheet.rb', line 3 def book @book end |
Instance Method Details
- (Boolean) has_contents?
14 15 16 |
# File 'lib/workbook/sheet.rb', line 14 def has_contents? table.has_contents? end |
- (Object) table
18 19 20 |
# File 'lib/workbook/sheet.rb', line 18 def table first end |