lib/cose/key/ec2.rb in cose-0.11.0 vs lib/cose/key/ec2.rb in cose-1.0.0

- old
+ new

@@ -46,10 +46,10 @@ new(crv: curve.id, x: x, y: y, d: d) end attr_reader :y - def initialize(y: nil, **keyword_arguments) # rubocop:disable Naming/UncommunicativeMethodParamName + def initialize(y: nil, **keyword_arguments) # rubocop:disable Naming/MethodParameterName if (!y || !keyword_arguments[:x]) && !keyword_arguments[:d] raise ArgumentError, "Both x and y are required if d is missing" else super(**keyword_arguments)