Class: Chef::Knife::Scrub::AttributeExtractor::Simple
- Inherits:
-
Base
- Object
- Base
- Chef::Knife::Scrub::AttributeExtractor::Simple
show all
- Defined in:
- lib/chef/knife/scrub/attribute_extractor.rb
Instance Method Summary
collapse
Methods inherited from Base
#initialize
Instance Method Details
#delete(path) ⇒ Object
82
83
84
85
|
# File 'lib/chef/knife/scrub/attribute_extractor.rb', line 82
def delete(path)
base, key = (attributes, path)
base.delete(key)
end
|
#fetch(path) ⇒ Object
77
78
79
80
|
# File 'lib/chef/knife/scrub/attribute_extractor.rb', line 77
def fetch(path)
base, key = (attributes, path)
base.fetch(key)
end
|
#has_key?(path) ⇒ Boolean
72
73
74
75
|
# File 'lib/chef/knife/scrub/attribute_extractor.rb', line 72
def has_key?(path)
base, key = (attributes, path)
!base.nil? && base.has_key?(key)
end
|