Merge pull request #19131 from tgxworld/reduce_allocated_memory_in_module_delegate

Reduce allocated memory for Module#delegate.
This commit is contained in:
Yves Senn 2015-02-28 19:26:36 +01:00
commit daa455f5ca

@ -167,7 +167,7 @@ def delegate(*methods)
''
end
file, line = caller.first.split(':', 2)
file, line = caller(1, 1).first.split(':', 2)
line = line.to_i
to = to.to_s