summaryrefslogtreecommitdiff
path: root/ruby/call_by_reference.rb
blob: 12dc933883f7f5bd6a14a2d905f9ce11ca29380d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/usr/bin/env ruby


def fun w
  w << "x"
end


w = [1,3,4,5]

fun w

puts w.to_s