Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 36 lines (32 sloc) 0.458 kb
55f143d @bovi Add documentation to Kernel
bovi authored
1 ##
2 # Kernel
e0d6430 @mimaki add mruby sources
mimaki authored
3 #
55f143d @bovi Add documentation to Kernel
bovi authored
4 # ISO 15.3.1
e0d6430 @mimaki add mruby sources
mimaki authored
5 module Kernel
55f143d @bovi Add documentation to Kernel
bovi authored
6 ##
7 # Calls the given block repetitively.
8 #
9 # ISO 15.3.1.2.8
e0d6430 @mimaki add mruby sources
mimaki authored
10 def self.loop #(&block)
11 while(true)
12 yield
13 end
14 end
15
a74ab0c @matz Kernel.eval to raise NotImplementedError
matz authored
16 # 15.3.1.2.3
17 def self.eval(s)
18 raise NotImplementedError.new("eval not implemented")
19 end
20
21 # 15.3.1.3.12
22 def eval(s)
23 Kernel.eval(s)
24 end
e0d6430 @mimaki add mruby sources
mimaki authored
25
55f143d @bovi Add documentation to Kernel
bovi authored
26 ##
580b026 @bovi Some fixes for the Documentation of Hash and Kernel
bovi authored
27 # Alias for +Kernel.loop+.
55f143d @bovi Add documentation to Kernel
bovi authored
28 #
29 # ISO 15.3.1.3.29
e0d6430 @mimaki add mruby sources
mimaki authored
30 def loop #(&block)
31 while(true)
32 yield
33 end
34 end
35 end
Something went wrong with that request. Please try again.