# File lib/mcollective/validator/ipv6address_validator.rb, line 6 def self.validate(validator) begin ip = IPAddr.new(validator) raise ValidatorError, "value should be an ipv6 adddress" unless ip.ipv6? rescue raise ValidatorError, "value should be an ipv6 address" end end
Generated with the Darkfish Rdoc Generator 2.