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

Why is Dir.children documented for Ruby 2.4.1? #81

Open
meineerde opened this issue Aug 20, 2017 · 3 comments
Open

Why is Dir.children documented for Ruby 2.4.1? #81

meineerde opened this issue Aug 20, 2017 · 3 comments

Comments

@meineerde
Copy link

meineerde commented Aug 20, 2017

The Dir.children method was added to Ruby trunk with Feature #11302. It was however not backported to Ruby 2.4 yet. Attempting to use it results in a NoMethodError in Ruby.

However, the method documentation is added to the Ruby 2.4.1 documentation at https://ruby-doc.org/core-2.4.1/Dir.html#method-c-children. Why is this the case? The method is not part of Ruby 2.4 and is (as far as I can see) not mentioned in the source code.

This was also asked and investigated at https://stackoverflow.com/a/45719685/421705

@chrisarcand
Copy link

Indeed, Dir.each_child as well, and it's present in all 2.4.x documentation. Added here.

@meineerde
Copy link
Author

Similarly, Hash#transform_keys was added to trunk in Feature #13583 but not (yet) to Ruby 2.4. See https://stackoverflow.com/a/46414193/421705

@eregon
Copy link

eregon commented Oct 8, 2017

We noticed a similar issue in ruby/spec#483.
It seems the docs ruby for 2.4.0, 2.4.1 and 2.4.2 all use trunk to generate the html documentaion, while they should of course use the corresponding tags like v2_4_2.

Same issue as #80.
@zzak do you know who we should ping about this or where to open an issue for it?

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

No branches or pull requests

3 participants