Class: Bignum
Instance Method Summary collapse
Instance Method Details
#to_ipaddr ⇒ Object
19 20 21 |
# File 'lib/has_ip_address/extensions.rb', line 19 def to_ipaddr [24, 16, 8, 0].collect {|b| (self >> b) & 255}.join('.').to_ipaddr end |