forked from zufuliu/notepad4
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Ruby.rb
106 lines (98 loc) · 1.46 KB
/
Ruby.rb
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
# Ruby 2.6.5 https://www.ruby-lang.org/en/documentation/
# https://ruby-doc.org/
#! Keywords ===========================================================
# https://ruby-doc.org/core-2.6.5/doc/keywords_rdoc.html
__ENCODING__
__LINE__
__FILE__
BEGIN
END
alias
and
break
defined?
else
elsif
ensure
false
in
next
nil
not
or
redo
rescue
retry
return
self
super
then
true
undef
when
end
yield
# Exception Handling
# https://ruby-doc.org/core-2.6.5/doc/syntax/exceptions_rdoc.html
raise
# Modules
# https://ruby-doc.org/core-2.6.5/doc/syntax/modules_and_classes_rdoc.html
public
protected
private
require
include
# Refinements
# https://ruby-doc.org/core-2.6.5/doc/syntax/refinements_rdoc.html
refine
# Pre-defined global constants
# https://ruby-doc.org/core-2.6.5/doc/globals_rdoc.html#label-Pre-defined+global+constants
TRUE
FALSE
NIL
STDIN
STDOUT
STDERR
ENV
ARGF
ARGV
DATA
RUBY_VERSION
RUBY_RELEASE_DATE
RUBY_PLATFORM
#! code fold ===========================================================
begin
end
case
end
class end
end
def end
end
do
end
for
end
if
end
module end
end
unless
end
until
end
while
end
#! Pre-defined variables ===================================================
# https://ruby-doc.org/core-2.6.5/doc/globals_rdoc.html
$DEBUG
$LOADED_FEATURES
$FILENAME
$LOAD_PATH
$stderr
$stdin
$stdout
$VERBOSE
#! RE ===========================================================
# RE can follow keywords
and begin break case do else elsif if next not or return unless until when