lib/ld/sheet.rb in ld-0.1.9 vs lib/ld/sheet.rb in ld-0.1.10
- old
+ new
@@ -36,10 +36,10 @@
else
@headings = nil
end
end
- def add_row row
+ def set_row row
raise 'add_row 传入的必须是一个数组' if row.class != Array
@rows << row
end
# 通过xy坐标往unit写内容