我希望我的脚本能够在没有警告的情况下运行。什么是正确的Ruby语法来避免这样的警告? 谢谢! --Myles
def absolutize_all_config_var_paths (in_var)
...
end
ruby -w ./scripts/run_flow
./scripts/run_flow:742: warning: parentheses after method name is interpreted as an argument list, not a decomposed argument
Ruby版本ruby 2.4.1p111
答案 0 :(得分:1)
删除方法名称和左括号之间的空格:
def absolutize_all_config_var_paths(in_var)
...
end