Method: Params.path
- Defined in:
- lib/params.rb
.path(name, value, description) ⇒ Object
Define new parameter of type path (the only difference with string is that the path expends ‘~’ to full user directory).
235 236 237 238 239 |
# File 'lib/params.rb', line 235 def Params.path(name, value, description) raise_error_if_param_exists(name) value = File.(value) unless value.nil? @params_data_base[name] = Param.new(name, value, 'Path', description) end |