C-Sharp | Java | Python | Swift | GO | WPF | Ruby | Scala | F# | JavaScript | SQL | PHP | Angular | HTML
Ruby Keywords
Review a list of keywords in Ruby. These keywords are used in nearly all programs.
Keywords. Ruby is object-oriented. Most actions we take are done with methods, part of classes. Iterators (methods) replace loops. The language thus needs fewer keywords.
Ruby Core. Ruby is a scripting language, so its implementation (Ruby Core) is the best source for information on its keywords. This list was built from its code.aliasbeginBEGINbreakcaseclassdefined?doelseelsifendENDensurefalseforifincludemodulenextnilpublicprotectedprivateredorescueretryselfsuperthentrueundefunlessuntilwhenwhileyield
Certain keywords, like undef, are rarely used. But learning how they work helps us understand the Ruby language in a more complete way.
In modern Ruby programs, constructs like for-loops are avoided. We find that iterators (like upto and times) are a clearer approach. But these keywords are still provided.
In the world of programming, Ruby is a good language. A Ruby developer can write correct, useful programs fast. This is an important ability.
© TheDeveloperBlog.com