Parent

Methods

Class/Module Index [+]

Quicksearch

MCollective::Validator::ArrayValidator

Public Class Methods

validate(validator, array) click to toggle source
# File lib/mcollective/validator/array_validator.rb, line 4
def self.validate(validator, array)
  raise ValidatorError, "value should be one of %s" % [ array.join(", ") ] unless array.include?(validator)
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.