Method: Inspec::Resources::JsonConfig#value

Defined in:
lib/resources/json.rb

#value(key) ⇒ Object



56
57
58
59
60
# File 'lib/resources/json.rb', line 56

def value(key)
  # uses ObjectTraverser.extract_value to walk the hash looking for the key,

  # which may be an Array of keys for a nested Hash.

  extract_value(key, params)
end