About 59,700 results
Open links in new tab
  1. 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 …

  2. class Regexp - Documentation for Ruby 4.0

    Note that this is a property of the ruby interpreter, not of the argument regular expression. Identical regexp can or cannot run in linear time depending on your ruby binary.

  3. 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 …

  4. Official Ruby FAQ

    Ruby is a simple and powerful object-oriented programming language, created by Yukihiro Matsumoto (who goes by the handle “Matz” in this document and on the mailing lists).

  5. 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:

  6. 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.

  7. 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.

  8. class String - Documentation for Ruby 4.0

    In the simplest case, the dumped string contains the original string, enclosed in double-quotes; this example is done in irb (interactive Ruby), which uses method ‘inspect` to render the results:

  9. class Array - Documentation for Ruby 4.0

    A number of Ruby methods, both in the core and in the standard library, provide instance method to_a, which converts an object to an array. ARGF#to_a Array#to_a Enumerable#to_a …

  10. NEWS - Documentation for Ruby 3.4

    To enable this feature, configure Ruby with --with-modular-gc at build time. GC libraries can be loaded at runtime using the environment variable RUBY_GC_LIBRARY.