Sha256: 3e924485f4b1ab09c24c7c4cc0aaffc9e861a369fb19b6308dd12fb46a382bd2
Contents?: true
Size: 349 Bytes
Versions: 25
Compression:
Stored size: 349 Bytes
Contents
module MCollective module Validator class Ipv4addressValidator require "ipaddr" def self.validate(validator) ip = IPAddr.new(validator) raise ValidatorError, "value should be an ipv4 adddress" unless ip.ipv4? rescue raise ValidatorError, "value should be an ipv4 address" end end end end
Version data entries
25 entries across 25 versions & 1 rubygems