summaryrefslogtreecommitdiff
path: root/sample/t2.rb
blob: 2e3741e8f19c829fe08799e44b1d5be68c542b11 (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()