Skip to content

Dir.getwd shows Dir.pwd as its name #1722

Closed

Description

@Earlopain

https://docs.ruby-lang.org/en/master/Dir.html#method-c-getwd

Dir.getwd is an alias for Dir.pwd. First I thought it was missing, but it seems to actually assume the name of the alias instead. https://docs.ruby-lang.org/en/master/Dir.html#method-c-pwd

Activity

  1. Earlopain commented on Jun 16, 2026

    @Earlopain
    ContributorAuthor

    Right, there is only one method definition and as such also only one call-seq to show. So it looks more like an issue of singleton methods in C not showing that they are aliases.

  2. added a commit that references this issue on Jun 16, 2026
    1054ba6
  3. added a commit that references this issue on Jul 19, 2026
    ac0bcbf
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions