summaryrefslogtreecommitdiff
path: root/sample/t2.rb
blob: a34c171837276f4e84291c7c3d500a911314304c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#print("in Print\n")
def t2() end

def println(*args)
  for a in args
    t2()
    print(a)
  end
  print("\n")
end

def tt
  for i in 1..10
    println("i:", i);
    yield(i);
  end
end

test = tt{i|
  if i == 3; break end
  println("ttt: ", i);
}
#exit()