About 49,900 results
  1. Installing Ruby

    If you cannot compile your own Ruby, and you do not want to use a third-party tool, you can use your system’s package manager to install Ruby. Some members of the Ruby community feel …

  2. index - Documentation for Ruby 3.5

    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 3.5

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

    Miniruby is a version of Ruby which has no external dependencies and lacks certain features. It can be useful in Ruby development because it allows for faster build times.

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

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

    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 …

  9. class Net::HTTPSession - Documentation for Ruby 3.5

    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 …

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