Method: Inspec::Resources::NtpConf#method_missing
- Defined in:
- lib/resources/ntp_conf.rb
#method_missing(name) ⇒ Object
26 27 28 29 30 31 |
# File 'lib/resources/ntp_conf.rb', line 26 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) and param.length == 1 param end |