def m(s) b = s.dup b << 'lol'end str = 'a'm(str)puts str# your code goes here
Standard input is empty
a
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!