Unlike in the Python code which only iterates over dictornary keys if only one variable is present for the iterator, Ruby iterates over an array of [key, value], which causes @params[par] to be evaluated as nil.
PR #3 contains a test case which executes these lines.
Unlike in the Python code which only iterates over dictornary keys if only one variable is present for the iterator, Ruby iterates over an array of
[key, value]
, which causes@params[par]
to be evaluated asnil
.PR #3 contains a test case which executes these lines.