summaryrefslogtreecommitdiffhomepage
path: root/lib/axlsx/workbook/workbook.rb
diff options
context:
space:
mode:
authorZsolt Kozaroczy <[email protected]>2023-05-31 10:57:21 +0200
committerGitHub <[email protected]>2023-05-31 10:57:21 +0200
commitcbcf330ea266c96861e4029aaea6be1063862900 (patch)
tree852696f0ae590d36e94d6aa1f3556ac2018fadb5 /lib/axlsx/workbook/workbook.rb
parente899d1dd0b913027cc017c180120ed24927faf0b (diff)
parent86026e2f106cb982f58f5a876756507d051aee4b (diff)
downloadcaxlsx-cbcf330ea266c96861e4029aaea6be1063862900.tar.gz
caxlsx-cbcf330ea266c96861e4029aaea6be1063862900.zip
Merge pull request #268 from tagliala/chore/fix-symbol-proc-offenses
Fix Style/SymbolProc offenses
Diffstat (limited to 'lib/axlsx/workbook/workbook.rb')
-rw-r--r--lib/axlsx/workbook/workbook.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/axlsx/workbook/workbook.rb b/lib/axlsx/workbook/workbook.rb
index 79d6adbd..e6e2f06f 100644
--- a/lib/axlsx/workbook/workbook.rb
+++ b/lib/axlsx/workbook/workbook.rb
@@ -171,7 +171,7 @@ module Axlsx
# @see Comment
# @return [Comments]
def comments
- worksheets.map { |sheet| sheet.comments }.compact
+ worksheets.map(&:comments).compact
end
# The styles associated with this workbook
@@ -369,7 +369,7 @@ module Axlsx
# generates a shared string object against all cells in all worksheets.
# @return [SharedStringTable]
def shared_strings
- SharedStringsTable.new(worksheets.collect { |ws| ws.cells }, xml_space)
+ SharedStringsTable.new(worksheets.collect(&:cells), xml_space)
end
# The xml:space attribute for the worksheet.