Parent

Methods

Class/Module Index [+]

Quicksearch

MCollective::Validator::RegexValidator

Public Class Methods

validate(validator, regex) click to toggle source
# File lib/mcollective/validator/regex_validator.rb, line 4
def self.validate(validator, regex)
  raise ValidatorError, "value should match #{regex}" unless validator.match(regex)
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.