method

new

v1_8_7_72 - Show latest stable - Class: Resolv::IPv4
new(address)
public

No documentation available.

# File lib/resolv.rb, line 2056
    def initialize(address) # :nodoc:
      unless address.kind_of?(String) && address.length == 4
        raise ArgumentError.new('IPv4 address must be 4 bytes')
      end
      @address = address
    end