diff options
| author | Zsolt Kozaroczy <[email protected]> | 2023-05-31 17:19:35 +0200 |
|---|---|---|
| committer | GitHub <[email protected]> | 2023-05-31 17:19:35 +0200 |
| commit | ad87c51bf8c8f59a36514bb95dc6d3a582c6b2fd (patch) | |
| tree | 1a666e99ccebefa4be1df5655b96f9f1337df794 /lib/axlsx/drawing/bar_chart.rb | |
| parent | cbcf330ea266c96861e4029aaea6be1063862900 (diff) | |
| parent | 42594ea9e486d3b0fe9c84ba1fc59140bb59439f (diff) | |
| download | caxlsx-ad87c51bf8c8f59a36514bb95dc6d3a582c6b2fd.tar.gz caxlsx-ad87c51bf8c8f59a36514bb95dc6d3a582c6b2fd.zip | |
Merge pull request #270 from tagliala/chore/use-ruby-19-hash-syntax
Use Ruby 1.9 hash syntax
Diffstat (limited to 'lib/axlsx/drawing/bar_chart.rb')
| -rw-r--r-- | lib/axlsx/drawing/bar_chart.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/axlsx/drawing/bar_chart.rb b/lib/axlsx/drawing/bar_chart.rb index 237ffdb3..87fd66c0 100644 --- a/lib/axlsx/drawing/bar_chart.rb +++ b/lib/axlsx/drawing/bar_chart.rb @@ -121,7 +121,7 @@ module Axlsx str << '<c:overlap val="' << @overlap.to_s << '"/>' unless @overlap.nil? str << '<c:gapWidth val="' << @gap_width.to_s << '"/>' unless @gap_width.nil? str << '<c:shape val="' << @shape.to_s << '"/>' unless @shape.nil? - axes.to_xml_string(str, :ids => true) + axes.to_xml_string(str, ids: true) str << '</c:barChart>' axes.to_xml_string(str) end @@ -131,7 +131,7 @@ module Axlsx # category axes specified via axes[:val_axes] and axes[:cat_axis] # @return [Axes] def axes - @axes ||= Axes.new(:cat_axis => CatAxis, :val_axis => ValAxis) + @axes ||= Axes.new(cat_axis: CatAxis, val_axis: ValAxis) end end end |
