我的解决方案就像
if (not (defined?(@results).nil?)) @results += "run" else @results = "run" end
但我相信有一些更简单的东西......
ruby
ruby ×1