Module: ChefAPI::Validator
- Defined in:
- lib/chef-api/validator.rb
Defined Under Namespace
Class Method Summary collapse
-
.find(key) ⇒ Object
Find a validator by the given key.
Class Method Details
.find(key) ⇒ Object
Find a validator by the given key.
10 11 12 13 14 |
# File 'lib/chef-api/validator.rb', line 10 def self.find(key) const_get(Util.camelize(key)) rescue NameError raise Error::InvalidValidator.new(key: key) end |