]> git.openstreetmap.org Git - chef.git/blobdiff - cookbooks/networking/libraries/ipaddresses.rb
Enable implicit conversion of addresses to strings
[chef.git] / cookbooks / networking / libraries / ipaddresses.rb
index 89b20fe9e9d13a81bcb4c4eb2bfc4e85c0b5727a..5f746c9aa1e4bd754c684a95037ae3b88930ddf8 100644 (file)
@@ -25,6 +25,10 @@ module OpenStreetMap
           address
         end
 
+        def to_str
+          address
+        end
+
         def subnet
           "#{@network}/#{@prefix}"
         end