Method: Chef::Node::Attribute#exist?
- Defined in:
- lib/chef/node/attribute.rb
#exist?(*path) ⇒ Boolean
476 477 478 479 480 481 482 483 |
# File 'lib/chef/node/attribute.rb', line 476 def exist?(*path) if path[0].nil? true else self[path[0]] unless path[0].nil? # force deep_merge_cache key construction if necessary deep_merge_cache.exist?(*path) end end |