lib/ld/excel/excel.rb in ld-0.3.1 vs lib/ld/excel/excel.rb in ld-0.3.2

- old
+ new

@@ -22,9 +22,14 @@ @excel = Spreadsheet::Workbook.new puts "创建新的Excel实例" end end + # 打开一个excel + def self.open path + self.new path + end + # 获取一页 def open_sheet name Ld::Sheet.open @excel, name end