Sha256: d0551de6573c466d7a84ecc8273f96efff661b0eda4b4953d727474d4c53074d

Contents?: true

Size: 286 Bytes

Versions: 7

Compression:

Stored size: 286 Bytes

Contents

# frozen_string_literal: true

# This is useful for specs, but I hesitate to monkey patch a core class in the library itself.
class Addrinfo
	def == other
		self.to_s == other.to_s
	end
	
	def != other
		self.to_s != other.to_s
	end
	
	def <=> other
		self.to_s <=> other.to_s
	end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
async-io-1.29.0 spec/addrinfo.rb
async-io-1.28.0 spec/addrinfo.rb
async-io-1.27.7 spec/addrinfo.rb
async-io-1.27.6 spec/addrinfo.rb
async-io-1.27.5 spec/addrinfo.rb
async-io-1.27.4 spec/addrinfo.rb
async-io-1.27.3 spec/addrinfo.rb