ruby_reserved_words_-_ruby_keywords

Ruby Reserved Words - Ruby Keywords

Reserved Words in Ruby

  • BEGIN - Marks code to be run unconditionally before the program's body.
  • END - Marks code to be run unconditionally after the program's body.
  • alias - Creates an alias for a method or global variable.
  • and - Logical operator, same as '&&'.
  • begin - Starts an exception-handling block.
  • break - Terminates a loop or a method.
  • case - Starts a case expression.
  • class - Defines a new class.
  • def - Defines a new method.
  • defined? - Returns a description of the item passed to it.
  • do - Starts a block of code (and executes it).
  • else - Executes code if the conditional statement(s) are false.
  • elsif - Executes code if the conditional statement(s) are false and the elsif condition is true.
  • end - Marks the end of a block, method, class, or module.
  • ensure - Ensures that the final block of code is always executed.
  • false - Boolean false value.
  • for - Loops over a collection of elements.
  • if - Executes code if a condition is true.
  • in - Used in for loops to iterate over elements.
  • module - Defines a new module.
  • next - Skips the current iteration of a loop.
  • nil - Represents “nothing” or “no value”.
  • not - Logical operator, negates the expression that follows it.
  • or - Logical operator, same as '||'.
  • redo - Restarts a loop without checking the loop condition.
  • rescue - Handles exceptions in Ruby.
  • retry - Retries the block that caused the exception.
  • return - Exits a method and returns a value.
  • self - Refers to the current object.
  • super - Calls the superclass implementation of the current method.
  • then - Separates the conditional expression from the code to be executed.
  • true - Boolean true value.
  • undef - Prevents a class or module from responding to a method call.
  • unless - Executes code if the condition is false.
  • until - Executes code while the condition is false.
  • when - Part of a case expression, specifies a condition to be met.
  • while - Executes code while the condition is true.
  • yield - Passes control from a method to a block.

You can find more details about each reserved word in the Ruby documentation: https://ruby-doc.org


Snippet from Wikipedia: Ruby (programming language)

Ruby is an interpreted, high-level, general-purpose programming language. It was designed with an emphasis on programming productivity and simplicity. In Ruby, everything is an object, including primitive data types. It was developed in the mid-1990s by Yukihiro "Matz" Matsumoto in Japan.

Ruby is dynamically typed and uses garbage collection and just-in-time compilation. It supports multiple programming paradigms, including procedural, object-oriented, and functional programming. According to the creator, Ruby was influenced by Perl, Smalltalk, Eiffel, Ada, BASIC, Java, and Lisp.

Research More

Ruby on the Cloud

Ruby on Containers

Ruby Courses

Fair Use Source

Ruby: Ruby Fundamentals, Ruby Inventor - Ruby Language Designer: Yukihiro Matsumoto in 1995; Ruby scripting, Rails, RubyGems, Ruby keywords, Ruby Built-In Data Types, Ruby data structures - Ruby algorithms, Ruby syntax, Ruby OOP - Ruby design patterns, Ruby for Chef, Ruby for Puppet, Ruby on Linux, Ruby on macOS, Ruby on Windows, Ruby installation, Ruby containerization, Ruby configuration, Ruby compiler - Ruby interpreter (Matz's Ruby Interpreter or Ruby MRI, also called CRuby), Ruby IDEs (RubyMine), Ruby development tools, Ruby DevOps - Ruby SRE, Ruby data science - Ruby DataOps, Ruby machine learning, Ruby deep learning, Functional Ruby, Ruby concurrency, Ruby history, Ruby bibliography, Ruby glossary, Ruby topics, Ruby courses, Ruby Standard Library, Ruby libraries, Ruby frameworks (Ruby on Rails), Ruby research, Ruby GitHub, Written in Ruby, Ruby popularity, Ruby Awesome list, Ruby Versions. (navbar_ruby)

Reserved Words: Programming Language Keywords, aka Reserved Identifiers. (navbar_reserved_words - see also navbar_programming)


© 1994 - 2024 Cloud Monk Losang Jinpa or Fair Use. Disclaimers

SYI LU SENG E MU CHYWE YE. NAN. WEI LA YE. WEI LA YE. SA WA HE.


ruby_reserved_words_-_ruby_keywords.txt · Last modified: 2024/04/28 03:12 (external edit)