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: String - Text manipulation and string utilities Symbol - Named identifiers inside the Ruby interpreter
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
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, straightforward, and extensible
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 DateTime#strftime Time#strftime Each of these methods takes optional argument format, which has zero or more embedded format specifications (see below)
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 sine of the given argument ::tan: Returns the tangent of the given argument Inverse Trigonometric Functions ::acos: Returns the arc cosine of the given
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
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 some_method ({foo: 0, bar: 1, baz: 2}) # => {foo: 0, bar: 1, baz: 2} Note: when the last argument in a method call is a hash, the curly braces may be omitted:
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
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 a symbol using a colon: :my_symbol You may also create symbols by interpolation and escape sequences described in Escape Sequences with double-quotes:
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 intuitive inter-operation facilities and Hash’s fast lookup Set is easy to use with Enumerable objects (implementing ‘each`)