blob: ad3bc72f7493cc77aa29780e8322caafe3d0392c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
|
##
# Kernel
#
# ISO 15.3.1
module Kernel
##
# Calls the given block repetitively.
#
# ISO 15.3.1.2.8
def self.loop #(&block)
while(true)
yield
end
end
# 15.3.1.2.3
def self.eval(s)
raise NotImplementedError.new("eval not implemented")
end
# 15.3.1.3.12
def eval(s)
Kernel.eval(s)
end
##
# Alias for +Kernel.loop+.
#
# ISO 15.3.1.3.29
def loop #(&block)
while(true)
yield
end
end
end
|