Ruby library reference
Learn everyday Ruby library methods through shopping lists, ticket bookings, delivery dates, and other familiar tasks.
Math and money
Calculate a change in temperature, pack boxes, or round a bill.
33 guidesStrings and input
Clean up names, compare codes, and read quantities from a form.
34 guidesFiles and paths
Build a receipt path, save a note, or read a shopping list.
16 guidesErrors and exceptions
Handle invalid entries, missing records, and interrupted work. Follow each failure from the input that triggers it to a response the user can act on.
11 guidesLists and maps
Work with ordered lists and key-value lookups. Follow a pickup roster, change a booking, or combine stock counts from two deliveries.
28 guidesDates and time
Calculate a delivery date or count nights between bookings.
3 guidesMore library topics
Explore additional libraries and worked examples for this language.
3 guidesOfficial documentation
Top-level classes and modules in the Ruby 3.3 documentation
- Abbrev
- ACL
- Addrinfo
- ARGF
- ArgumentError
- Array
- Base64
- BasicObject
- BasicSocket
- Benchmark
- BigDecimal
- BigMath
- Binding
- Bundler
- CGI
- Class
- ClosedQueueError
- Comparable
- Complex
- Continuation
- COPYING
- CoreExtensions
- Coverage
- CSV
- Data
- Date
- DateTime
- Delegator
- DidYouMean
- Digest
- Dir
- DRb
- Encoding
- EncodingError
- English
- Enumerable
- Enumerator
- ENV
- EOFError
- ERB
- Errno
- ErrorHighlight
- Etc
- Exception
- FalseClass
- Fcntl
- Fiber
- FiberError
- Fiddle
- File
- FileTest
- FileUtils
- Find
- Float
- FloatDomainError
- Forwardable
- FrozenError
- GC
- GetoptLong
- Hash
- IndexError
- Integer
- Interrupt
- IO
- IOError
- IPAddr
- IPSocket
- IRB
- Jacobian
- JSON
- Kconv
- Kernel
- KeyError
- LEGAL
- LocalJumpError
- Logger
- LUSolve
- MakeMakefile
- Marshal
- MatchData
- Math
- Method
- Module
- Monitor
- MonitorMixin
- Mutex_m
- NameError
- Net
- Newton
- NilClass
- NKF
- NoMatchingPatternError
- NoMatchingPatternKeyError
- NoMemoryError
- NoMethodError
- NotImplementedError
- Numeric
- Object
- ObjectSpace
- Observable
- OLEProperty
- Open3
- OpenSSL
- OpenStruct
- OpenURI
- OptionParser
- Pathname
- PP
- PrettyPrint
- Prism
- Proc
- Process
- PStore
- Psych
- PTY
- Ractor
- Random
- Range
- RangeError
- Rational
- RbConfig
- RDoc
- Readline
- Refinement
- Regexp
- RegexpError
- Reline
- Resolv
- Rinda
- Ripper
- RubyVM
- RuntimeError
- ScriptError
- SecureRandom
- SecurityError
- Set
- Shellwords
- Signal
- SignalException
- SimpleDelegator
- SingleForwardable
- Singleton
- Socket
- SocketError
- SOCKSSocket
- StandardError
- StopIteration
- String
- StringIO
- StringScanner
- Struct
- Symbol
- SyntaxError
- SyntaxSuggest
- Syslog
- SystemCallError
- SystemExit
- SystemStackError
- TCPServer
- TCPSocket
- Tempfile
- Thread
- ThreadError
- ThreadGroup
- Time
- Timeout
- TracePoint
- TrueClass
- TSort
- TypeError
- UDPSocket
- UnboundMethod
- UncaughtThrowError
- UNIXServer
- UNIXSocket
- URI
- Warning
- WeakRef
- Win32
- WIN32OLE
- WIN32OLEQueryInterfaceError
- WIN32OLERuntimeError
- XMP
- YAML
- ZeroDivisionError
- Zlib