summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorRandy Morgan <[email protected]>2012-03-01 21:47:32 +0900
committerSean Duckett <[email protected]>2012-03-07 14:45:03 -0600
commitc2d3314b02b517c61c8d1cbc8c9a331a3806b1e7 (patch)
tree7a9a880ef0b3a2d33ab5622abb26cff6fc7125d4
parent94f8dfd7645fa50be2a2f9c7f561a4ee22556001 (diff)
downloadcaxlsx-c2d3314b02b517c61c8d1cbc8c9a331a3806b1e7.tar.gz
caxlsx-c2d3314b02b517c61c8d1cbc8c9a331a3806b1e7.zip
touch of documentation for an excellent addition by @jurriaan
-rw-r--r--lib/axlsx/workbook/worksheet/worksheet.rb7
1 files changed, 5 insertions, 2 deletions
diff --git a/lib/axlsx/workbook/worksheet/worksheet.rb b/lib/axlsx/workbook/worksheet/worksheet.rb
index 68a3e3c6..cdeb524a 100644
--- a/lib/axlsx/workbook/worksheet/worksheet.rb
+++ b/lib/axlsx/workbook/worksheet/worksheet.rb
@@ -193,7 +193,7 @@ module Axlsx
@drawing || @drawing = Axlsx::Drawing.new(self)
end
- # Adds a row to the worksheet and updates auto fit data
+ # Adds a row to the worksheet and updates auto fit data.
# @example - put a vanilla row in your spreadsheet
# ws.add_row [1, 'fish on my pl', '8']
#
@@ -222,6 +222,9 @@ module Axlsx
# @example - force the second cell to be a float value
# ws.add_row [3, 4, 5], :types => [nil, :float]
#
+ # @example - use << alias
+ # ws << [3, 4, 5], :types => [nil, :float]
+ #
# @see Worksheet#column_widths
# @return [Row]
# @option options [Array] values
@@ -235,7 +238,7 @@ module Axlsx
yield @rows.last if block_given?
@rows.last
end
-
+
alias :<< :add_row
# Set the style for cells in a specific row