Sam Saffron 0a5a6dfded DEV: stop mutating inputs as a side effect
We had quite a few cases in core where inputs are being mutated as a side
effect of calling a method.

This handles all the cases where specs caught this.

Mutating inputs makes code harder to reason about. Eg:

```
frog = "frog"
jump(frog)
puts frog
"fly" # ?????
```

This commit is part of a followup commit that adds # frozen_string_literal
to all our specs.
2019-04-30 10:25:53 +10:00
..
2017-07-28 10:20:09 +09:00
2018-01-30 08:54:37 +11:00
2017-07-28 10:20:09 +09:00
2017-07-28 10:20:09 +09:00
2019-04-01 10:11:08 +08:00
2018-07-05 15:34:58 +10:00