I usually do
value = input || \"default\"
so if input = nil
value = \"default\"
But how can I do this so in
Maybe irrelavant but I would use highline like this:
require "highline/import" input = ask('Input: ') { |q| q.default = "default" }
It works without Rails. Really neat solution.