lib/kamerling/addr.rb in kamerling-0.0.1 vs lib/kamerling/addr.rb in kamerling-0.0.2
- old
+ new
@@ -9,9 +9,13 @@
def to_a
[host, port]
end
+ def to_h
+ super.merge prot: prot.to_s
+ end
+
def to_s
"#{host}:#{port} (#{prot})"
end
end
end