Method: ChefAPI::Validator::Base#initialize
- Defined in:
- lib/chef-api/validators/base.rb
#initialize(attribute, options = {}) ⇒ Base
Create anew validator.
23 24 25 26 |
# File 'lib/chef-api/validators/base.rb', line 23 def initialize(attribute, = {}) @attribute = attribute @options = .is_a?(Hash) ? : {} end |