lib/ld/excel.rb in ld-0.1.8 vs lib/ld/excel.rb in ld-0.1.9
- old
+ new
@@ -402,11 +402,11 @@
def save path
if File.exist? path
@excel.write path
puts "保存覆盖了一个同名文件 #{@path}"
else
- @excel.write @path
- puts "保存到: #{@path}"
+ @excel.write path
+ puts "保存到: #{path}"
end
self
end
def new_sheet name