ruby头像

Searching…

www.ruby-lang.org

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 or Read More...

www.ruby-lang.org

Ruby in Twenty Minutes

Ruby comes with a program that will show the results of any Ruby statements you feed it. Playing with Ruby code in interactive sessions like this is a terrific way to learn the language.

docs.ruby-lang.org

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 Modules Explore the essential classes and modules...

docs.ruby-lang.org

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 tasks. It is simple, stra...

docs.ruby-lang.org

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.

www.ruby-lang.org

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 November, and 3.4.8 for January.

docs.ruby-lang.org

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.

docs.ruby-lang.org

class String - Documentation for Ruby 4.0

Encoding. default_internal = 'UTF-8' t = s. encode # => "Ruby™" t. encoding # => # With only argument dst_encoding given, uses that encoding:

docs.ruby-lang.org

building_ruby - Documentation for Ruby 4.0

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.

docs.ruby-lang.org

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: 0, bar: 1, baz: 2}) # =...