# File lib/chef/node/attribute.rb, line 489 def component_has_key?(component_attrs,key) # get the Hash-like object at the current nesting level: nested_attrs = value_at_current_nesting(component_attrs, key) nested_attrs.respond_to?(:key?) && nested_attrs.key?(key) end