Skip to content

Link to a class method when using dot #629

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
Jun 21, 2018

Conversation

aycabta
Copy link
Member

@aycabta aycabta commented Jun 20, 2018

Some classes of standard library have the same name in class method and instance method. For example, Random::bytes and Random#bytes. In most cases of using dot in documents, it intends class method.

This closes #601.

Memo:

This patch changes links of Ruby trunk as of now below:

  • doc/NEWS-1.8.7
    • Tempfile.open
  • doc/NEWS-1.9.3
    • Random.rand
  • doc/NEWS-2.1.0
    • TSort.tsort
    • TSort.tsort_each
    • TSort.strongly_connected_components
    • TSort.each_strongly_connected_component
    • TSort.each_strongly_connected_component_from
  • NEWS
    • Random.bytes
  • random.c
    • Random.rand
  • lib/optparse.rb
    • OptionParser.accept
    • OptionParser.reject

@aycabta aycabta force-pushed the link-to-class-method-when-using-dot branch from c131b67 to d9f7809 Compare June 20, 2018 19:55
Some classes of standard library have the same name in class method and
instance method. For example, Random::bytes and Random#bytes. In most
cases of using dot in documents, it intends class method.
@aycabta aycabta force-pushed the link-to-class-method-when-using-dot branch from d9f7809 to 62e181a Compare June 20, 2018 19:57
@aycabta aycabta merged commit d153084 into ruby:master Jun 21, 2018
@aycabta aycabta deleted the link-to-class-method-when-using-dot branch June 21, 2018 19:37
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.

Class method Random.bytes is replaced with instance method Random#bytes
1 participant