ruby: Avoid warning about shadowed variable