summaryrefslogtreecommitdiffhomepage
path: root/lib/axlsx/workbook/worksheet/row.rb
diff options
context:
space:
mode:
authorJohnny Shields <[email protected]>2023-04-13 00:01:36 +0900
committerGitHub <[email protected]>2023-04-12 17:01:36 +0200
commite548f377932207130cec4ac257a3907385d547d5 (patch)
tree8bccecc9ae3bbedced3bacca40543137b365c005 /lib/axlsx/workbook/worksheet/row.rb
parent92a38e44ca78f013dda583f3db2c7721e6e2a8c7 (diff)
downloadcaxlsx-e548f377932207130cec4ac257a3907385d547d5.tar.gz
caxlsx-e548f377932207130cec4ac257a3907385d547d5.zip
Small fixes: whitespace, typos, ordering, etc. (#188)
Diffstat (limited to 'lib/axlsx/workbook/worksheet/row.rb')
-rw-r--r--lib/axlsx/workbook/worksheet/row.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/axlsx/workbook/worksheet/row.rb b/lib/axlsx/workbook/worksheet/row.rb
index 453e1e66..97a7adab 100644
--- a/lib/axlsx/workbook/worksheet/row.rb
+++ b/lib/axlsx/workbook/worksheet/row.rb
@@ -103,14 +103,14 @@ module Axlsx
c
end
- # sets the color for every cell in this row
+ # Sets the color for every cell in this row.
def color=(color)
each_with_index do |cell, index|
cell.color = color.is_a?(Array) ? color[index] : color
end
end
- # sets the style for every cell in this row
+ # Sets the style for every cell in this row.
def style=(style)
each_with_index do |cell, index|
cell.style = style.is_a?(Array) ? style[index] : style