Ruby Information
When you need check documentation about Ruby classes, modules, and methods use this skill to get full details. Avoid check source code or use `ruby -e` for documentation unless absolutely necessary.
Works with
--- name: Ruby Information description: When you need check documentation about Ruby classes, modules, and methods use this skill to get full details. Avoid check source code or use `ruby -e` for documentation unless absolutely necessary. license: MIT --- # Ruby Information Use the `ri` command to access Ruby documentation which is installed locally on your system. ## Instructions Use `ri [options] <whatever>` to look up information about Ruby classes, modules, and methods. - Combine with `head` to fast check documentation before displaying full content. - Combine with `wc` to count relevant items when searching for multiple entries. - Combine with `grep` to filter results based on keywords. Consider to add quote to queries with special characters to avoid shell interpretation issues. e.g. `ri 'String#blank?'` ## Scenarios ### Direct Lookup Check specific Ruby classes or methods accurately. ```bash ri Array#push ``` ### Search method Check for methods is implemetned in a class or module and get a count of results. ```bash ri '.find' | wc -l ``` Use grep to filter results. ```bash ri '.find' | grep 'Enumerable' ``` > Note: Use `wc` and `grep` to ensure the output is concise and relevant. ### List Names Get a list of all classes and modules under a specific namespace. ```bash ri --list 'MyModule::Application' ``` ### Preview Documentation Preview the first few lines of documentation for a method or class. ```bash ri 'String#upcase' | head -n 10 ``` ### Explore Options Explore various options available with the `ri` command. ```bash ri --help ``` ## Documentation You can get README and other documentation if bundled with gems. ```bash ri rspec:README.md ``` To list all available documentation files for a gem: ```bash ri rspec: ``` Append the `:` after the gem name to see all documentation files associated with that gem. ## Building Documentation You can use `rdoc` to generate and view documentation for your own Ruby projects. ```bash rdoc --format=ri --output=ri_doc . ``` View the generated documentation using `ri`: ```bash ri -d ./ri_doc 'MyClass' ``` ## References For more information, refer to the official Ruby documentation: [https://ruby.github.io/rdoc/index.html](https://ruby.github.io/rdoc/index.html)
More Writing & Documentation skills
paper-context-resolver
lllllllama/rigorpilot-skills
Rigor Paper Context helper for README-first deep learning repo reproduction. Use only when the README and repository files leave a narrow reproduction-critical gap and the task is to resolve a specific paper detail such as dataset split, preprocessing, evaluation protocol, checkpoint mapping, or runtime assumption from primary paper sources while recording conflicts. Do not use for general paper summary, repo scanning, environment setup, command execution, title-only paper lookup, or replacing README guidance by default.
repo-intake-and-plan
lllllllama/rigorpilot-skills
Rigor Intake helper for README-first deep learning repo reproduction. Use when the task is specifically to scan a repository, read the README and common project files, extract documented commands, classify inference, evaluation, and training candidates, and return the smallest trustworthy reproduction plan to the main orchestrator. Do not use for environment setup, asset download, command execution, final reporting, paper lookup, or end-to-end orchestration.
minimal-run-and-audit
lllllllama/rigorpilot-skills
Rigor Run skill for README-first deep learning repo reproduction. Use when the task is specifically to capture or normalize evidence from the selected smoke test or documented inference or evaluation command and write standardized `repro_outputs/` files, including patch notes when repository files changed. Do not use for training execution, initial repo intake, generic environment setup, paper lookup, target selection, hidden scientific-meaning changes, or end-to-end orchestration by itself.

