-
Notifications
You must be signed in to change notification settings - Fork 613
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
Pathname#pathmap is still (erronously) documented #348
Comments
I'm not sure why it's still exists. It was removed from the current top page that is https://ruby.github.io/rake/index.html . |
restore pathmap extension please. At least have it available to load 'require "rake/ext/pathmap" |
@hsbt Is there any discussion thread on why the I could understand if the eventual goal is to remove it from String as well. Though as long as |
The rake docs here still indicate that
Pathname#pathmap
exists. However, it was removed by #130It would be easy enough to fix the docs. But perhaps a different question is, why was this removed from Pathname?
I expected the following to work, but instead got
NoMethodError: undefined method 'pathmap' for #<Pathname
Surely it's easy enough to use
directory p.dirname
. However, I have a lambda that is also used as a rule dep (to ensure the parent directories are created). I was hoping to use the same lambda when iterating over the array_of_pathnames.As long as we're extending String, I'd expect the same extensions to work on the "more domain appropriate" Pathname.
The text was updated successfully, but these errors were encountered: