Skip to content

Commit

Permalink
socket.rb - simplify check for the method
Browse files Browse the repository at this point in the history
  • Loading branch information
nobu committed Dec 14, 2022
1 parent 9eb19a0 commit 71dd8b3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ext/socket/lib/socket.rb
@@ -1,7 +1,7 @@
# frozen_string_literal: true

require 'socket.so'
require 'io/wait' unless ::IO.public_instance_methods(false).include? :wait_readable
require 'io/wait' unless ::IO.method_defined?(:wait_readable, false)

class Addrinfo
# creates an Addrinfo object from the arguments.
Expand Down

0 comments on commit 71dd8b3

Please sign in to comment.