summaryrefslogtreecommitdiff
path: root/sample/caller.rb
blob: 898873337773bd63f681151a1f10ea424ef347f7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
def test
  for i in 1..2
    for j in 1..5
      print(j, ": ", caller(j).join(':'), "\n")
    end
  end
end

def test2
  print(1, ": ", caller(1).join(':'), "\n")
  test()
end

test2()
caller()