Method: Inspec::Resources::RegistryKey#method_missing
- Defined in:
- lib/resources/registry_key.rb
#method_missing(*keys) ⇒ Object
returns nil, if not existant or value
109 110 111 112 113 114 115 116 117 118 119 120 121 122 |
# File 'lib/resources/registry_key.rb', line 109 def method_missing(*keys) # allow the use of array syntax in an `its` block so that users # can use it to query for keys with . characters in them if keys.is_a?(Array) keys.shift if keys[0] == :[] key = keys.first else key = keys end # get data val = registry_key([:path]) registry_property_value(val, key) end |