Sha256: 9ea234554a60a653c434cec342ad3379bafa5224d71ad4ec5d80c04730aec714
Contents?: true
Size: 349 Bytes
Versions: 26
Compression:
Stored size: 349 Bytes
Contents
module MCollective module Validator class Ipv6addressValidator require "ipaddr" def self.validate(validator) 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 end end
Version data entries
26 entries across 26 versions & 1 rubygems