About 50,100 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 …

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

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

  4. class Struct - Documentation for Ruby 4.0

    class Struct: Class \Struct provides a convenient way to create a simple class that can store and fetch values. tt>; the first argument, a string, is the name of th

  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 …

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

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

  8. module Math - Documentation for Ruby 4.0

    See class Float for the constants that affect Ruby’s floating-point arithmetic. What’s Here Trigonometric Functions ::cos: Returns the cosine of the given argument. ::sin: Returns the …

  9. strftime_formatting - Documentation for Ruby 4.0

    Formats for Dates and Times Several Ruby time-related classes have instance method strftime, which returns a formatted string representing all or part of a date or time: Date#strftime. …

  10. class Hash - Documentation for Ruby 4.0

    self. language = hash [:language] end end matz = Dev. new (name: 'Matz', language: 'Ruby') matz # => #<Dev: @name="Matz", @language="Ruby"> Creating a Hash You can create a Hash …