class RgGen::SpreadsheetLoader::Spreadsheet::Book

Attributes

file[R]
sheets[R]

Public Class Methods

new(file) { |self| ... } click to toggle source
# File lib/rggen/spreadsheet_loader/spreadsheet/book.rb, line 7
def initialize(file)
  @file = file
  @sheets = []
  block_given? && yield(self)
end

Public Instance Methods

add_sheet(sheet_name, table) click to toggle source
# File lib/rggen/spreadsheet_loader/spreadsheet/book.rb, line 16
def add_sheet(sheet_name, table)
  sheet = Sheet.new(self, sheet_name)
  sheet.from_table(table)
  sheets << sheet
end