Getting started new to ruby Start with our getting started guide Core classes and modules explore the essential classes and modules Class regexp a regular expression (also called a regexp) is a match pattern (also simply called a pattern) A common notation for a regexp uses enclosing slash characters /foo/ a regexp may be applied to a target string
The part of the string (if any) that matches the pattern is called a match, and may be said to match ('redirect') # => true # match at beginning of. It also offers many scripting features to process plain text and serialized files, or manage system tasks It is simple, straightforward, and extensible. Class \struct provides a convenient way to create a simple class that can store and fetch values The first argument, a string, is the name of th
Exceptions 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 Code throughout the ruby core, ruby standard library, and ruby gems generates exceptions in certain circumstances: A \hash object maps each of its unique keys to a specific value An array index is always an integer. It has an elegant syntax that is natural to read and easy to write
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. Control expressions ruby has a variety of ways to control execution All the expressions described here return a value If expression the simplest if expression has two parts. Windows ruby supports a few native build platforms for windows