class Chef::Knife::Scrub::AttributeExtractor::Weird
Public Instance Methods
delete(path)
click to toggle source
# File lib/chef/knife/scrub/attribute_extractor.rb, line 99 def delete(path) base, key = extract(attributes, path) base.delete_from_component(base.send(@precedence), key) end
fetch(path)
click to toggle source
# File lib/chef/knife/scrub/attribute_extractor.rb, line 94 def fetch(path) base, key = extract(attributes, path) base.value_at_current_nesting(base.send(@precedence), key).fetch(key) end
has_key?(path)
click to toggle source
# File lib/chef/knife/scrub/attribute_extractor.rb, line 89 def has_key?(path) base, key = extract(attributes, path) !base.nil? && base.component_has_key?(base.send(@precedence), key) end