Method: Inspec::Resources::PostgresConf#method_missing

Defined in:
lib/resources/postgres_conf.rb

#method_missing(*keys) ⇒ Object



54
55
56
57
58
59
60
61
# File 'lib/resources/postgres_conf.rb', line 54

def method_missing(*keys)
  keys.shift if keys.is_a?(Array) && keys[0] == :[]
  param = value(keys)
  return nil if param.nil?
  # extract first value if we have only one value in array
  return param[0] if param.length == 1
  param
end