fw wrote:
> On Fri, 2008-01-18 at 18:22 +0900, Ak 756 wrote:
> irb(main):001:0> require 'ipaddr'
> => true
> irb(main):002:0> class IPAddr
> irb(main):003:1> def succ!
> irb(main):004:2> @addr += 1
> irb(main):005:2> self
> irb(main):006:2> end
> irb(main):007:1> end
> => nil
> irb(main):008:0> a = IPAddr.new('192.168.0.255')
> => #<IPAddr: IPv4:192.168.0.255/255.255.255.255>
> irb(main):009:0> a.succ!
> => #<IPAddr: IPv4:192.168.1.0/255.255.255.255>
> irb(main):010:0>
> 
> HTH,
> 
> Felix

Hi Felix

It works. Thank you very much!

-- 
Posted via http://www.ruby-forum.com/.