About 40,400 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. Documentation for Ruby 3.4

    New to Ruby? Start with our Getting Started Guide. Core Classes and Modules Explore the essential classes and modules: String - Text manipulation and string utilities. Symbol - Named …

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

  4. Documentation for Ruby 3.3

    Ruby is an interpreted object-oriented programming language often used for web development. It also offers many scripting features to process plain text and serialized files, or manage system …

  5. class Struct - Documentation for Ruby 3.5

    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

  6. exceptions - Documentation for Ruby 3.5

    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. strftime_formatting - Documentation for Ruby 3.5

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

  8. module Math - Documentation for Ruby 3.5

    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. class Hash - Documentation for Ruby 3.5

    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 …

  10. control_expressions - Documentation for Ruby 4.0

    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.

  11. Ruby 3.3.8 Released - Ruby Programming Language

    Apr 9, 2025 · Ruby 3.3.8 Released Posted by nagachika on 9 Apr 2025 Ruby 3.3.8 has been released. Please see the for further details. Download https://cache.ruby …

  12. windows - Documentation for Ruby 4.0

    You can build ruby in any directory including the source directory, except win32 directory in the source directory. This is restriction originating in the path search method of NMAKE.

  13. Ruby Issue Tracking System

    This system is hosting the development of Ruby language and its related projects. You must register your account and activate it via an email before reporting issues.

  14. literals - Documentation for Ruby 4.0

    TWO Symbol Literals A Symbol represents a name inside the ruby interpreter. See Symbol for more details on what symbols are and when ruby creates them internally. You may reference …

  15. standard_library - Documentation for Ruby 4.0

    The Ruby Standard Library is a large collection of classes and modules you can require in your code to gain additional features. Below is an overview of the libraries and extensions, followed …

  16. class Class - Documentation for Ruby 4.0

    class Class Classes in Ruby are first-class objects—each is an instance of class Class. Typically, you create a new class by using: class Name # some code describing the class behavior end …

  17. Ruby 3.4.4 Released - Ruby Programming Language

    May 14, 2025 · We intend to release the latest stable Ruby version (currently Ruby 3.4) every two months following the most recent release. Following this release (3.4.4), Ruby 3.4.5 is …

  18. class Net::HTTPSession - Documentation for Ruby 4.0

    A Ruby URI::Generic object represents an internet URI. It provides, among others, methods scheme, hostname, path, query, and fragment. Schemes An internet URI has a scheme. The …

  19. class Set - Documentation for Ruby 4.0

    All rights reserved. You can redistribute and/or modify it under the same terms as Ruby. The Set class implements a collection of unordered values with no duplicates. It is a hybrid of Array’s …

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