
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 …
Ruby Releases
Mar 3, 2010 · This is a list of Ruby releases. The shown dates correspond to the publication dates of the English versions of release posts and may differ from the actual creation dates of the source tarballs.
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.
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.
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
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. DateTime#strftime. …
Ruby 3.5.0 preview1 Released
Apr 18, 2025 · Ruby was first developed by Matz (Yukihiro Matsumoto) in 1993, and is now developed as Open Source. It runs on multiple platforms and is used all over the world especially for web …
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 sine of the given …
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.
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: …