Ruby's CSV module provides a complete toolkit for parsing, generating, and streaming comma-separated data with custom delimiters, headers, and encoding options.
Reference
Modules
Common Ruby modules and standard-library helpers.
- CSV
- Date
Learn Ruby's Date class for calendar date work. Create, parse, and manipulate dates; calculate differences between days; and iterate over date ranges.
- Dir
Work with directories in Ruby to list files, navigate, create folders, inspect paths, and remove empty directories when needed.
- ERB
Master ERB, Ruby's built-in template engine for embedding Ruby in HTML, config files, and email templates. Covers tags, trim modes, and security best practices.
- File
Read, write, and inspect files with Ruby's File module. Covers File.read, File.write, path helpers, file permissions, and practical file management examples.
- FileUtils
The FileUtils module handles file and directory operations in Ruby: copying, moving, and deleting. Covers cp, mv, rm, mkdir_p, chmod, and symlinks.
- JSON
Parse and generate JSON data in Ruby with the standard library. Convert between Ruby objects and JSON strings for APIs, configuration, and serialization.
- Logger
Use Ruby's Logger class for application logging with severity levels, multiple outputs, rotation, and custom formatting for debugging and production use.
- Net::HTTP
Net::HTTP is Ruby's HTTP client library. Make HTTP requests, handle responses, and manage connections with the standard library.
- Readline
Ruby's Readline module provides line-editing, command history, and tab completion for building polished interactive CLI tools with Emacs or Vi key bindings.
- Set
Ruby Set provides unordered collections that reject duplicates and offer fast lookups. Covers creation, union, intersection, difference, and uses like tags.
- Time
Master Ruby's Time class to create, parse, format, and manipulate date-and-time objects. Covers time zones, strftime directives, and safe time patterns.
- YAML
Parse and generate YAML data in Ruby with the standard library module that wraps Psych. Learn how to load, inspect, and dump YAML safely.