From 91e1598531833463aadff9537c813e9338504889 Mon Sep 17 00:00:00 2001 From: Marc-Andre Lafortune Date: Sun, 20 Dec 2020 21:39:56 -0500 Subject: [ruby/psych] Freeze constants. Improves Ractor-readiness. --- lib/psych.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/psych.rb') diff --git a/lib/psych.rb b/lib/psych.rb index c3292d9..347160e 100644 --- a/lib/psych.rb +++ b/lib/psych.rb @@ -233,9 +233,9 @@ require 'psych/class_loader' module Psych # The version of libyaml Psych is using - LIBYAML_VERSION = Psych.libyaml_version.join '.' + LIBYAML_VERSION = Psych.libyaml_version.join('.').freeze # Deprecation guard - NOT_GIVEN = Object.new + NOT_GIVEN = Object.new.freeze private_constant :NOT_GIVEN ### -- cgit v1.2.3