-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathfile.keywords.html
197 lines (186 loc) · 8.26 KB
/
file.keywords.html
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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
<!DOCTYPE html>
<html>
<head>
<meta charset='UTF-8'>
<meta name='viewport' content='width=device-width, initial-scale=1.0, user-scalable=no'>
<meta name='apple-touch-fullscreen' content='yes'>
<meta name='apple-mobile-web-app-capable' content='yes'>
<meta name='apple-mobile-web-app-status-bar-style' content='rgba(228,228,228,1.0)'>
<title>File: Keywords — Ruby-2.6.10</title>
<link rel='stylesheet' type='text/css' href='../css/y_fonts.css' />
<link rel='stylesheet' type='text/css' href='../css/highlight.github.css' />
<link rel='stylesheet' type='text/css' href='../css/y_style.css' />
<link rel='stylesheet' type='text/css' href='../css/y_list.css' />
<link rel='stylesheet' type='text/css' href='../css/y_color.css' />
<script type='text/javascript'>
var pathId = "keywords",
relpath = '';
var t2Info = {
CSEP: '.',
ISEP: '#',
NSEP: '::'
};
</script>
<script type='text/javascript' charset='utf-8' src='../js/highlight.pack.js'></script>
<script type='text/javascript' charset='utf-8' src='../js/y_app.js'></script>
</head>
<body>
<svg id='y_wait' class viewBox='0 0 90 90'></svg>
<div id='settings' class='hidden'></div>
<div id='y_list' class='d h'>
<header id='list_header'></header>
<nav id= 'list_nav' class='y_nav l_nav'>
<ul id='list_items'></ul>
</nav>
</div>
<div id='y_toc' class='f h'>
<header id='toc_header'></header>
<nav id= 'toc_nav' class='y_nav t_nav'>
<ol id='toc_items'></ol>
</nav>
</div>
<div id='y_main' tabindex='-1'>
<header id='y_header'>
<div id='y_menu'>
<a id='home_no_xhr' href='/'>Home</a> »
<a href='.'>Ruby-2.6.10</a> »
<a href='_index.html'>Index</a> »
<span class='title'><a id='t2_doc_top' href='#'>File: Keywords ▲</a></span>
</div>
<a id='list_href' href="file_list.html"></a>
<div id='y_measure_em' class='y_measure'></div>
<div id='y_measure_vh' class='y_measure'></div>
<span id='y_measure_50pre' class='y_measure'><code>123456789_123456789_123456789_123456789_123456789_</code></span>
</header>
<div id='content' class='file'>
<h2 id="label-Keywords">Keywords</h2>
<p>The following keywords are used by Ruby.</p>
<dl class="rdoc-list note-list"><dt>__ENCODING__
<dd>
<p>The script encoding of the current file. See Encoding.</p>
</dd><dt>__LINE__
<dd>
<p>The line number of this keyword in the current file.</p>
</dd><dt>__FILE__
<dd>
<p>The path to the current file.</p>
</dd><dt>BEGIN
<dd>
<p>Runs before any other code in the current file. See <a href="file.miscellaneous.html" title="miscellaneous syntax">miscellaneous syntax</a></p>
</dd><dt>END
<dd>
<p>Runs after any other code in the current file. See <a href="file.miscellaneous.html" title="miscellaneous syntax">miscellaneous syntax</a></p>
</dd><dt>alias
<dd>
<p>Creates an alias between two methods (and other things). See <a href="file.modules_and_classes.html" title="modules and classes syntax">modules and classes syntax</a></p>
</dd><dt>and
<dd>
<p>Short-circuit Boolean and with lower precedence than <code>&&</code></p>
</dd><dt>begin
<dd>
<p>Starts an exception handling block. See <a href="file.exceptions.html" title="exceptions syntax">exceptions syntax</a></p>
</dd><dt>break
<dd>
<p>Leaves a block early. See <a href="file.control_expressions.html" title="control expressions syntax">control expressions syntax</a></p>
</dd><dt>case
<dd>
<p>Starts a <code>case</code> expression. See <a href="file.control_expressions.html" title="control expressions syntax">control expressions syntax</a></p>
</dd><dt>class
<dd>
<p>Creates or opens a class. See <a href="file.modules_and_classes.html" title="modules and classes syntax">modules and classes syntax</a></p>
</dd><dt>def
<dd>
<p>Defines a method. See <a href="file.methods.html" title="methods syntax">methods syntax</a></p>
</dd><dt>defined?
<dd>
<p>Returns a string describing its argument. See <a href="file.miscellaneous.html" title="miscellaneous syntax">miscellaneous syntax</a></p>
</dd><dt>do
<dd>
<p>Starts a block.</p>
</dd><dt>else
<dd>
<p>The unhandled condition in <code>case</code>, <code>if</code> and <code>unless</code> expressions. See <a href="file.control_expressions.html" title="control expressions">control expressions</a></p>
</dd><dt>elsif
<dd>
<p>An alternate condition for an <code>if</code> expression. See <a href="file.control_expressions.html" title="control expressions">control expressions</a></p>
</dd><dt>end
<dd>
<p>The end of a syntax block. Used by classes, modules, methods, exception handling and control expressions.</p>
</dd><dt>ensure
<dd>
<p>Starts a section of code that is always run when an exception is raised. See <a href="file.exceptions.html" title="exception handling">exception handling</a></p>
</dd><dt>false
<dd>
<p>Boolean false. See <a href="file.literals.html" title="literals">literals</a></p>
</dd><dt>for
<dd>
<p>A loop that is similar to using the <code>each</code> method. See <a href="file.control_expressions.html" title="control expressions">control expressions</a></p>
</dd><dt>if
<dd>
<p>Used for <code>if</code> and modifier <code>if</code> expressions. See <a href="file.control_expressions.html" title="control expressions">control expressions</a></p>
</dd><dt>in
<dd>
<p>Used to separate the iterable object and iterator variable in a <code>for</code> loop. See <a href="file.control_expressions.html" title="control expressions">control expressions</a></p>
</dd><dt>module
<dd>
<p>Creates or opens a module. See <a href="file.modules_and_classes.html" title="modules and classes syntax">modules and classes syntax</a></p>
</dd><dt>next
<dd>
<p>Skips the rest of the block. See <a href="file.control_expressions.html" title="control expressions">control expressions</a></p>
</dd><dt>nil
<dd>
<p>A false value usually indicating “no value” or “unknown”. See <a href="file.literals.html" title="literals">literals</a></p>
</dd><dt>not
<dd>
<p>Inverts the following boolean expression. Has a lower precedence than <code>!</code></p>
</dd><dt>or
<dd>
<p>Boolean or with lower precedence than <code>||</code></p>
</dd><dt>redo
<dd>
<p>Restarts execution in the current block. See <a href="file.control_expressions.html" title="control expressions">control expressions</a></p>
</dd><dt>rescue
<dd>
<p>Starts an exception section of code in a <code>begin</code> block. See <a href="file.exceptions.html" title="exception handling">exception handling</a></p>
</dd><dt>retry
<dd>
<p>Retries an exception block. See <a href="file.exceptions.html" title="exception handling">exception handling</a></p>
</dd><dt>return
<dd>
<p>Exits a method. See <a href="file.methods.html" title="methods">methods</a></p>
</dd><dt>self
<dd>
<p>The object the current method is attached to. See <a href="file.methods.html" title="methods">methods</a></p>
</dd><dt>super
<dd>
<p>Calls the current method in a superclass. See <a href="file.methods.html" title="methods">methods</a></p>
</dd><dt>then
<dd>
<p>Indicates the end of conditional blocks in control structures. See <a href="file.control_expressions.html" title="control expressions">control expressions</a></p>
</dd><dt>true
<dd>
<p>Boolean true. See <a href="file.literals.html" title="literals">literals</a></p>
</dd><dt>undef
<dd>
<p>Prevents a class or module from responding to a method call. See <a href="file.modules_and_classes.html" title="modules and classes">modules and classes</a></p>
</dd><dt>unless
<dd>
<p>Used for <code>unless</code> and modifier <code>unless</code> expressions. See <a href="file.control_expressions.html" title="control expressions">control expressions</a></p>
</dd><dt>until
<dd>
<p>Creates a loop that executes until the condition is true. See <a href="file.control_expressions.html" title="control expressions">control expressions</a></p>
</dd><dt>when
<dd>
<p>A condition in a <code>case</code> expression. See <a href="file.control_expressions.html" title="control expressions">control expressions</a></p>
</dd><dt>while
<dd>
<p>Creates a loop that executes while the condition is true. See <a href="file.control_expressions.html" title="control expressions">control expressions</a></p>
</dd><dt>yield
<dd>
<p>Starts execution of the block sent to the current method. See <a href="file.methods.html" title="methods">methods</a></p>
</dd></dl>
<div id='footer'></div>
</div> <!-- content -->
</div> <!-- y_main -->
</body>
</html>