Skip to content

Update ri manpage to show how to access ruby pages #1340

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 23, 2025

Conversation

adam12
Copy link
Contributor

@adam12 adam12 commented Apr 16, 2025

Rendered output.
image

Copy link
Member

@kou kou left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

+1

man/ri.1 Outdated
@@ -35,6 +35,8 @@ can be:
.Pp
.It Class::method | Class#method | Class.method | method
.Pp
.It ruby: | ruby:packed_data | ruby:dig_methods
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe we can make this example align with ri usage message

rdoc/lib/rdoc/ri/driver.rb

Lines 122 to 130 in 2824bb6

Where name can be:
Class | Module | Module::Class
Class::method | Class#method | Class.method | method
gem_name: | gem_name:README | gem_name:History
ruby: | ruby:NEWS | ruby:globals

@adam12 adam12 requested a review from tompng April 23, 2025 11:17
Copy link
Member

@tompng tompng left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you 👍

@tompng tompng merged commit 9774b48 into ruby:master Apr 23, 2025
30 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

3 participants