Method: Inspec::Resources::WMI#method_missing
- Defined in:
- lib/resources/wmi.rb
#method_missing(*keys) ⇒ Object
returns nil, if not existant or value
42 43 44 45 46 47 48 49 50 51 |
# File 'lib/resources/wmi.rb', line 42 def method_missing(*keys) # catch behavior of rspec its implementation # @see https://github.com/rspec/rspec-its/blob/master/lib/rspec/its.rb#L110 keys.shift if keys.is_a?(Array) && keys[0] == :[] # map all symbols to strings keys = keys.map { |x| x.to_s.downcase } if keys.is_a?(Array) value(keys) end |