diff options
| -rw-r--r-- | lib/ipaddr.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/ipaddr.rb b/lib/ipaddr.rb index dc33fffcb5..e802c8817e 100644 --- a/lib/ipaddr.rb +++ b/lib/ipaddr.rb @@ -239,8 +239,8 @@ class IPAddr end # Returns a json string containing the IP address representation. - def to_json(*) - format("\"%s\"", as_json) + def to_json(*a) + %Q{"#{as_json(*a)}"} end # Returns a string containing the IP address representation in |
