mirror of
https://github.com/ruby/ruby.git
synced 2026-01-27 04:24:23 +00:00
[ruby/psych] Replace Ruby 3.5 with Ruby 4.0
This commit updates the Ruby version to follow the commit in Ruby master branch.
6d81969b47
https://github.com/ruby/psych/commit/971b7de078
This commit is contained in:
parent
ade2b51a3b
commit
c07b2329ed
@ -20,7 +20,7 @@ end
|
||||
|
||||
# Up to Ruby 3.4, Set was a regular object and was dumped as such
|
||||
# by Pysch.
|
||||
# Starting from Ruby 3.5 it's a core class written in C, so we have to implement
|
||||
# Starting from Ruby 4.0 it's a core class written in C, so we have to implement
|
||||
# #encode_with / #init_with to preserve backward compatibility.
|
||||
if defined?(::Set) && Set.new.instance_variables.empty?
|
||||
class Set
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user