Method: Inspec::Resources::SshConfig#method_missing
- Defined in:
- lib/inspec/resources/ssh_config.rb
#method_missing(name) ⇒ Object
46 47 48 49 50 51 52 53 |
# File 'lib/inspec/resources/ssh_config.rb', line 46 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 |