Method: Inspec::Resources::SshConf#method_missing
- Defined in:
- lib/resources/ssh_conf.rb
#method_missing(name) ⇒ Object
47 48 49 50 51 52 53 |
# File 'lib/resources/ssh_conf.rb', line 47 def method_missing(name) param = read_params[name.to_s.downcase] 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 |