Skip to content

Commit

Permalink
Eval defaults with frozen_string_literal: true
Browse files Browse the repository at this point in the history
  • Loading branch information
byroot committed Jul 23, 2020
1 parent 8149d42 commit d498ae3
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/rubygems/specification.rb
Expand Up @@ -1953,6 +1953,8 @@ def init_with(coder) # :nodoc:
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
Expand Down

0 comments on commit d498ae3

Please sign in to comment.