[rubygems/rubygems] Eval defaults with frozen_string_literal: true

https://github.com/rubygems/rubygems/commit/d498ae3d62
This commit is contained in:
Jean Boussier 2020-07-23 15:21:37 +02:00 committed by Hiroshi SHIBATA
parent 9bbca93aa8
commit 91865230cd
Notes: git 2020-09-28 14:54:54 +09:00
1 changed files with 2 additions and 0 deletions

View File

@ -1957,6 +1957,8 @@ class Gem::Specification < Gem::BasicSpecification
end
eval <<-RUBY, binding, __FILE__, __LINE__ + 1
# frozen_string_literal: true
def set_nil_attributes_to_nil
#{@@nil_attributes.map {|key| "@#{key} = nil" }.join "; "}
end