def hoge_r(s) s[1] = "1"end a = "abc"b = ahoge_r(a)puts aputs b
Standard input is empty
a1c a1c
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!