Skip to content

Commit c8c2bd6

Browse files
hsbtkou
andauthored
Fixup method_defined? usage
Co-authored-by: Sutou Kouhei <kou@clear-code.com>
1 parent a6127e5 commit c8c2bd6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/stringio/test_ractor.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ def setup
99
def test_ractor
1010
assert_in_out_err([], <<-"end;", ["true"], [])
1111
class Ractor
12-
alias value take
13-
end unless Ractor.method_defined? :value # compat with Ruby 3.4 and olders
12+
alias value take unless method_defined? :value # compat with Ruby 3.4 and olders
13+
end
1414
1515
require "stringio"
1616
$VERBOSE = nil

0 commit comments

Comments
 (0)