Skip to content
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

Clarify that lookup/resolve/descriptor are singleton class methods #174

Closed
wants to merge 1 commit into from

Conversation

jez
Copy link

@jez jez commented Jul 31, 2024

The Ruby documentation uses # exclusively to mean "an instance method," for example in the Array documentation, making its usage here in the protobuf docs misleading: using # here makes it seem like you're supposed to call this method on instances of the enum module, but there are none.

In general, writing it like this in terms of Foo::SomeEnum brings the example more in line with the rest of the examples which all operate on a hypothetical enum module.

The Ruby documentation uses `#` exclusively to mean "an instance method," for example [in the Array documentation](https://docs.ruby-lang.org/en/master/Array.html).

Using `#` here makes it seem like you're supposed to call this method on instances of the enum module, but there are none.

In general, writing it like this in terms of `Foo::SomeEnum` brings the example more in line with the rest of the examples which all operate on a hypothetical enum module.
Copy link

google-cla bot commented Jul 31, 2024

Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

View this failed invocation of the CLA check for more information.

For the most up to date status, view the checks section at the bottom of the pull request.

@Logofile
Copy link
Member

Logofile commented Aug 7, 2024

Thanks for the submission. I'm running it past our Ruby person to confirm, and will roll it into the docs once I get that.

@Logofile
Copy link
Member

Thanks for the PR! I incorporated the changes upstream (this repo is currently output-only), and they published this morning.

@Logofile Logofile closed this Aug 16, 2024
@jez jez deleted the patch-1 branch August 16, 2024 21:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants