Skip to content

Commit

Permalink
Performance/StringIdentifierArgument
Browse files Browse the repository at this point in the history
Use :"#{k}=" instead of "#{k}=".
  • Loading branch information
pgwillia committed Jan 29, 2024
1 parent f6c9d14 commit 89ca868
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/datacite/doi_response.rb
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ class DOIResponse
def initialize(metadata)
metadata[:data][:attributes].each do |(k, v)|
self.class.attr_accessor(k) unless self.class.method_defined? k.to_sym
send("#{k}=", v)
send(:"#{k}=", v)
end
end
end
Expand Down

0 comments on commit 89ca868

Please sign in to comment.