class MiniWork
Public Class Methods
new(file, config)
click to toggle source
# File lib/sawa/MiniWork.rb, line 7 def initialize(file, config) @book = Spreadsheet.open(file, 'r') @sheets = Hash.new() @book.worksheets.each do |sheet| @sheets[sheet.name] = MiniSheet.new(sheet, config) end end
Public Instance Methods
sheet(name)
click to toggle source
# File lib/sawa/MiniWork.rb, line 27 def sheet(name) @sheets[name] end
sheet_arr()
click to toggle source
# File lib/sawa/MiniWork.rb, line 19 def sheet_arr arr = [] @sheets.each do |name, sheet| arr.push(sheet) end arr end
sheets()
click to toggle source
# File lib/sawa/MiniWork.rb, line 15 def sheets @sheets end