Class: Chef::Knife::Core::GenericPresenter
- Inherits:
-
Object
- Object
- Chef::Knife::Core::GenericPresenter
- Defined in:
- lib/chef/knife/partial_search/partial_search.rb
Instance Method Summary collapse
Instance Method Details
#extract_nested_value(data, nested_value_spec) ⇒ Object
45 46 47 48 49 50 51 |
# File 'lib/chef/knife/partial_search/partial_search.rb', line 45 def extract_nested_value(data, nested_value_spec) if data.kind_of?(::Knife::PartialSearch::FakeNode) data[nested_value_spec] else old_extract(data, nested_value_spec) end end |
#old_extract ⇒ Object
43 |
# File 'lib/chef/knife/partial_search/partial_search.rb', line 43 alias_method :old_extract, :extract_nested_value |