diff options
Diffstat (limited to 'lib/ipaddr.rb')
| -rw-r--r-- | lib/ipaddr.rb | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/ipaddr.rb b/lib/ipaddr.rb index 6c0ded2a77..c21c0cbf12 100644 --- a/lib/ipaddr.rb +++ b/lib/ipaddr.rb @@ -466,6 +466,11 @@ class IPAddr af, _to_string(@addr), _to_string(@mask_addr)) end + # Returns the netmask in string format e.g. 255.255.0.0 + def netmask + _to_string(@mask_addr) + end + protected # Set +@addr+, the internal stored ip address, to given +addr+. The |
