socket.rb - simplify check for the method
This commit is contained in:
parent
9eb19a02ae
commit
71dd8b3caa
@ -1,7 +1,7 @@
|
|||||||
# frozen_string_literal: true
|
# frozen_string_literal: true
|
||||||
|
|
||||||
require 'socket.so'
|
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
|
class Addrinfo
|
||||||
# creates an Addrinfo object from the arguments.
|
# creates an Addrinfo object from the arguments.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user