Method: Puppet::Parser::Scope#is_default?
- Defined in:
- lib/puppet/parser/scope.rb
#is_default?(type, key, value) ⇒ Boolean
Check if the given value is a known default for the given type
457 458 459 460 461 462 463 464 |
# File 'lib/puppet/parser/scope.rb', line 457 def is_default?(type, key, value) defaults_for_type = @defaults[type] unless defaults_for_type.nil? default_param = defaults_for_type[key] return true if !default_param.nil? && value == default_param.value end !parent.nil? && parent.is_default?(type, key, value) end |