From 55526805cf28cc91a22df5811b26cd23bdefa8d3 Mon Sep 17 00:00:00 2001 From: Geremia Taglialatela Date: Sat, 8 Apr 2023 11:53:12 +0200 Subject: Fix space-related offenses - Layout/SpaceAfterComma - Layout/SpaceAroundEqualsInParameterDefault - Layout/SpaceAroundOperators - Layout/SpaceBeforeBlockBraces - Layout/SpaceInsideBlockBraces - Layout/SpaceInsideHashLiteralBraces - Layout/SpaceInsideParens --- lib/axlsx/drawing/axes.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/axlsx/drawing/axes.rb') diff --git a/lib/axlsx/drawing/axes.rb b/lib/axlsx/drawing/axes.rb index 146d566e..0e4403ab 100644 --- a/lib/axlsx/drawing/axes.rb +++ b/lib/axlsx/drawing/axes.rb @@ -6,7 +6,7 @@ module Axlsx # should be an axis name like :val_axis and its value should be the # class of the axis type to construct. The :cat_axis, if there is one, # must come first (we assume a Ruby 1.9+ Hash or an OrderedHash). - def initialize(options={}) + def initialize(options = {}) raise(ArgumentError, "CatAxis must come first") if options.keys.include?(:cat_axis) && options.keys.first != :cat_axis options.each do |name, axis_class| add_axis(name, axis_class) -- cgit v1.2.3