Ruby 保留字分類清單

[Blocks & Exception Handling]
return
begin
rescue
redo
break
ensure
retry

[Classes & Modules]
module
class
def
undef
defined?
alias
super

[Conditional]
and
or
not

[control flow]
if
else
elsif
unless
case
when
then

[Files]
BEGIN
END

__Line__

[Iteration]
do
until
while
yield
next
for
in

[Scope]
self

[Truthy value/Boolean]
true
false
nil

留言