4 ms·
Shouldn't this h = Hash.new { @1[@2] = "Go Fish: #{@1}" } Be h = Hash.new { @1[@2] = "Go Fish: #@1" } For maximum syntax golf? Or are positional ar
by riffraff 8y ago
Shouldn't this
h = Hash.new { @1[@2] = "Go Fish: #{@1}" }
Be
h = Hash.new { @1[@2] = "Go Fish: #@1" }
For maximum syntax golf?
Or are positional arguments not working the same way as instance variables wrt to interpolation?
- deleted 8y ago[deleted]