
Ruby 程序设计语言官方网站
Ruby 是…… 一门开源的动态编程语言,注重简洁和效率。 Ruby 的句法优雅,读起来自然,写起来舒适。 下载 Ruby 或 了解更多……
index - Documentation for Ruby 3.4
Ruby Documentation Welcome to the official Ruby programming language documentation. Getting Started New to Ruby? Start with our Getting Started Guide. Core Classes and …
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.
operators - Documentation for Ruby 3.5
Operators In Ruby, operators such as +, are defined as methods on the class. Literals define their methods within the lower level, C language. String class, for example. Ruby objects can define …
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 …
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.
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. …
class Hash - Documentation for Ruby 3.5
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 …
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 …
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).