Method: SshConf#method_missing
- Defined in:
- lib/resources/ssh_conf.rb
#method_missing(name) ⇒ Object
34 35 36 37 38 39 40 |
# File 'lib/resources/ssh_conf.rb', line 34 def method_missing(name) param = read_params[name.to_s] 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 |