Method: Inspec::Resources::NtpConf#method_missing

Defined in:
lib/inspec/resources/ntp_conf.rb

#method_missing(name) ⇒ Object



25
26
27
28
29
30
31
# File 'lib/inspec/resources/ntp_conf.rb', line 25

def method_missing(name)
  param = read_params[name.to_s]
  # extract first value if we have only one value in array
  return param[0] if param.is_a?(Array) && (param.length == 1)

  param
end