Skip to content

Commit 52d85c0

Browse files
hsbtmatzbot
authored andcommitted
[ruby/date] Alias value to take in old Ruby
ruby/date@1ce29a26dd
1 parent 6f4eaa1 commit 52d85c0

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

test/date/test_date_ractor.rb

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,10 @@
55
class TestDateParseRactor < Test::Unit::TestCase
66
def code(klass = Date, share: false)
77
<<~RUBY.gsub('Date', klass.name)
8+
class Ractor
9+
alias value take
10+
end unless Ractor.method_defined? :value # compat with Ruby 3.4 and olders
11+
812
share = #{share}
913
d = Date.parse('Aug 23:55')
1014
Ractor.make_shareable(d) if share

0 commit comments

Comments
 (0)