About 51,400 results
Open links in new tab
  1. Ruby Programming Language

    Ruby is... A dynamic, open source programming language with a focus on simplicity and productivity. It has an elegant syntax that is natural to read and easy to write. Download Ruby or Read More...

  2. Download Ruby

    See the Installation page for details on building Ruby from source. If you have an issue compiling Ruby, consider using one of the third party tools mentioned above.

  3. index - Documentation for Ruby 4.0

    Ruby Documentation Welcome to the official Ruby programming language documentation. Getting Started New to Ruby? Start with our Getting Started Guide. Core Classes and Modules Explore the …

  4. class Regexp - Documentation for Ruby 4.0

    Identical regexp can or cannot run in linear time depending on your ruby binary. Neither forward nor backward compatibility is guaranteed about the return value of this method.

  5. Ruby 3.4.5 Released - Ruby Programming Language

    Jul 15, 2025 · We intend to release the latest stable Ruby version (currently Ruby 3.4) every two months following the most recent release. Ruby 3.4.6 is scheduled for September, 3.4.7 for November, and …

  6. class Hash - Documentation for Ruby 4.0

    person = {name: 'Matz', language: 'Ruby'} person # => {name: "Matz", language: "Ruby"} You can use a hash to give names to method arguments: def some_method (hash) p hash end some_method ({foo: …

  7. class Hash - Documentation for Ruby 2.0.0

    books [: matz] = "The Ruby Language" books [: black] = "The Well-Grounded Rubyist" Hashes are also commonly used as a way to have named parameters in functions.

  8. class String - Documentation for Ruby 4.0

    Encoding. default_internal = 'UTF-8' t = s. encode # => "Ruby™" t. encoding # => #<Encoding:UTF-8> With only argument dst_encoding given, uses that encoding:

  9. exceptions - Documentation for Ruby 4.0

    Ruby code can raise exceptions. Most often, a raised exception is meant to alert the running program that an unusual (i.e., exceptional) situation has arisen, and may need to be handled.

  10. control_expressions - Documentation for Ruby 3.4

    Ruby’s grammar differentiates between statements and expressions. All expressions are statements (an expression is a type of statement), but not all statements are expressions.