# RubyDoc.AI > An AI-powered guide to the Ruby language and standard library. Ask questions in natural language, get idiomatic code snippets, and jump to the official documentation at docs.ruby-lang.org. RubyDoc.AI is a chat interface over the official Ruby documentation. Answers cite docs.ruby-lang.org and ruby-lang.org guides. This site is friendly to AI crawlers and training: see /robots.txt for the explicit allow list. ## App - [Home](/): Chat with the Ruby documentation. - [llms-full.txt](/llms-full.txt): Same index as this file, plus a machine-readable JSON block. - [Full docs index (Markdown)](/docs.md): All curated sections in one Markdown page. - [Sitemap](/sitemap.xml): XML sitemap. ## Core · Basics Fundamental value types every Ruby program uses. - [Object](https://docs.ruby-lang.org/en/master/Object.html): Root of Ruby's object hierarchy. - [String](https://docs.ruby-lang.org/en/master/String.html): Mutable sequence of characters. - [Symbol](https://docs.ruby-lang.org/en/master/Symbol.html): Interned, immutable identifier. - [Integer](https://docs.ruby-lang.org/en/master/Integer.html): Whole numbers of arbitrary size. - [Float](https://docs.ruby-lang.org/en/master/Float.html): Double-precision floating-point numbers. - [Numeric](https://docs.ruby-lang.org/en/master/Numeric.html): Abstract base of all number types. - [TrueClass / FalseClass / NilClass](https://docs.ruby-lang.org/en/master/NilClass.html): Boolean & nil singletons. - [Range](https://docs.ruby-lang.org/en/master/Range.html): Interval of values, e.g. (1..10). - [Regexp](https://docs.ruby-lang.org/en/master/Regexp.html): Regular expression pattern. ## Core · Collections Data structures and iteration. - [Array](https://docs.ruby-lang.org/en/master/Array.html): Ordered, mutable list. - [Hash](https://docs.ruby-lang.org/en/master/Hash.html): Key/value dictionary preserving insertion order. - [Set](https://docs.ruby-lang.org/en/master/Set.html): Unordered collection of unique values. - [Enumerable](https://docs.ruby-lang.org/en/master/Enumerable.html): Mixin providing map, select, reduce & friends. - [Enumerator](https://docs.ruby-lang.org/en/master/Enumerator.html): Externalize iteration; build lazy pipelines. - [Comparable](https://docs.ruby-lang.org/en/master/Comparable.html): Mixin for ordering via <=>. ## Core · Classes & Modules The building blocks of Ruby's object model. - [Class](https://docs.ruby-lang.org/en/master/Class.html): Blueprint for objects. - [Module](https://docs.ruby-lang.org/en/master/Module.html): Namespace and mixin container. - [Method / UnboundMethod](https://docs.ruby-lang.org/en/master/Method.html): First-class method objects. - [Proc / Lambda](https://docs.ruby-lang.org/en/master/Proc.html): First-class blocks / closures. - [Kernel](https://docs.ruby-lang.org/en/master/Kernel.html): Methods available on every object (puts, require, ...). ## Core · IO & Files Reading, writing, streams and processes. - [IO](https://docs.ruby-lang.org/en/master/IO.html): Base class for input/output streams. - [File](https://docs.ruby-lang.org/en/master/File.html): File I/O and path operations. - [Dir](https://docs.ruby-lang.org/en/master/Dir.html): Directory traversal and globbing. - [Pathname](https://docs.ruby-lang.org/en/master/Pathname.html): Object-oriented file paths (stdlib). - [StringIO](https://docs.ruby-lang.org/en/master/StringIO.html): IO-like interface over a String. ## Core · Errors & Control Exceptions, control flow, threading. - [Exception](https://docs.ruby-lang.org/en/master/Exception.html): Root of the exception hierarchy. - [StandardError](https://docs.ruby-lang.org/en/master/StandardError.html): Default rescue target. - [Thread](https://docs.ruby-lang.org/en/master/Thread.html): Native threads. - [Fiber](https://docs.ruby-lang.org/en/master/Fiber.html): Cooperative micro-threads. - [Mutex / Queue](https://docs.ruby-lang.org/en/master/Mutex.html): Synchronization primitives. ## Standard Library Batteries shipped with Ruby. - [JSON](https://docs.ruby-lang.org/en/master/JSON.html): Parse and generate JSON. - [Net::HTTP](https://docs.ruby-lang.org/en/master/Net/HTTP.html): HTTP client. - [URI](https://docs.ruby-lang.org/en/master/URI.html): Parse and build URIs. - [OpenStruct](https://docs.ruby-lang.org/en/master/OpenStruct.html): Objects with arbitrary attributes. - [Struct](https://docs.ruby-lang.org/en/master/Struct.html): Value objects generated at runtime. - [Date / Time / DateTime](https://docs.ruby-lang.org/en/master/Time.html): Dates, times, and arithmetic. - [CSV](https://docs.ruby-lang.org/en/master/CSV.html): Read/write CSV data. - [YAML](https://docs.ruby-lang.org/en/master/Psych.html): YAML via Psych. - [Logger](https://docs.ruby-lang.org/en/master/Logger.html): Structured logging. - [OptionParser](https://docs.ruby-lang.org/en/master/OptionParser.html): Build CLI flag parsers. - [SecureRandom](https://docs.ruby-lang.org/en/master/SecureRandom.html): Cryptographic-grade randomness. - [Digest](https://docs.ruby-lang.org/en/master/Digest.html): MD5/SHA hashing. ## Language & Guides Learning material from ruby-lang.org. - [Getting Started](https://www.ruby-lang.org/en/documentation/quickstart/): A tour of Ruby in ~20 minutes. - [Ruby From Other Languages](https://www.ruby-lang.org/en/documentation/ruby-from-other-languages/): Ruby for Python / JS / Java devs. - [Ruby's Style Guide](https://www.ruby-lang.org/en/documentation/): Idiomatic Ruby patterns. - [Syntax Reference](https://docs.ruby-lang.org/en/master/syntax.html): Full grammar & syntax pages. - [Regexp syntax](https://docs.ruby-lang.org/en/master/Regexp.html): Pattern language reference. - [Pattern Matching](https://docs.ruby-lang.org/en/master/syntax/pattern_matching_rdoc.html): case/in destructuring. - [Refinements](https://docs.ruby-lang.org/en/master/syntax/refinements_rdoc.html): Lexically-scoped monkey patches. - [Ractor](https://docs.ruby-lang.org/en/master/Ractor.html): Parallel actor model. ## Optional - [Official Ruby documentation](https://docs.ruby-lang.org/en/master/) - [ruby-lang.org guides](https://www.ruby-lang.org/en/documentation/)