Class: RgGen::SpreadsheetLoader::Spreadsheet::Book
- Inherits:
-
Object
- Object
- RgGen::SpreadsheetLoader::Spreadsheet::Book
- Defined in:
- lib/rggen/spreadsheet_loader/spreadsheet/book.rb
Instance Attribute Summary collapse
-
#file ⇒ Object
readonly
Returns the value of attribute file.
-
#sheets ⇒ Object
readonly
Returns the value of attribute sheets.
Instance Method Summary collapse
- #add_sheet(sheet_name, table) ⇒ Object
-
#initialize(file) ⇒ Book
constructor
A new instance of Book.
Constructor Details
#initialize(file) ⇒ Book
Returns a new instance of Book.
7 8 9 10 11 |
# File 'lib/rggen/spreadsheet_loader/spreadsheet/book.rb', line 7 def initialize(file) @file = file @sheets = [] block_given? && yield(self) end |
Instance Attribute Details
#file ⇒ Object (readonly)
Returns the value of attribute file.
13 14 15 |
# File 'lib/rggen/spreadsheet_loader/spreadsheet/book.rb', line 13 def file @file end |
#sheets ⇒ Object (readonly)
Returns the value of attribute sheets.
14 15 16 |
# File 'lib/rggen/spreadsheet_loader/spreadsheet/book.rb', line 14 def sheets @sheets end |