diff options
| author | Zsolt Kozaroczy <[email protected]> | 2023-05-31 10:57:21 +0200 |
|---|---|---|
| committer | GitHub <[email protected]> | 2023-05-31 10:57:21 +0200 |
| commit | cbcf330ea266c96861e4029aaea6be1063862900 (patch) | |
| tree | 852696f0ae590d36e94d6aa1f3556ac2018fadb5 /lib/axlsx/drawing | |
| parent | e899d1dd0b913027cc017c180120ed24927faf0b (diff) | |
| parent | 86026e2f106cb982f58f5a876756507d051aee4b (diff) | |
| download | caxlsx-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/drawing')
| -rw-r--r-- | lib/axlsx/drawing/drawing.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/axlsx/drawing/drawing.rb b/lib/axlsx/drawing/drawing.rb index 8cb3e2cc..fa7a608c 100644 --- a/lib/axlsx/drawing/drawing.rb +++ b/lib/axlsx/drawing/drawing.rb @@ -109,14 +109,14 @@ module Axlsx # @return [Array] def hyperlinks links = self.images.select { |a| a.hyperlink.is_a?(Hyperlink) } - links.map { |a| a.hyperlink } + links.map(&:hyperlink) end # An array of image objects that are associated with this drawing's anchors # @return [Array] def images images = @anchors.select { |a| a.object.is_a?(Pic) } - images.map { |a| a.object } + images.map(&:object) end # The index of this drawing in the owning workbooks's drawings collection. |
