lib/io/endpoint/host_endpoint.rb in io-endpoint-0.13.1 vs lib/io/endpoint/host_endpoint.rb in io-endpoint-0.14.0
- old
+ new
@@ -12,9 +12,13 @@
@specification = specification
end
def to_s
+ "host:#{@specification[0]}:#{@specification[1]}"
+ end
+
+ def inspect
nodename, service, family, socktype, protocol, flags = @specification
"\#<#{self.class} name=#{nodename.inspect} service=#{service.inspect} family=#{family.inspect} type=#{socktype.inspect} protocol=#{protocol.inspect} flags=#{flags.inspect}>"
end