# File lib/chef/node/attribute.rb, line 478 def delete_from_component(component_attrs, key) # get the Hash-like object at the current nesting level: nested_attrs = value_at_current_nesting(component_attrs, key) if nested_attrs.respond_to?(:delete) nested_attrs.delete(key) else nil end end