You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Pathname#pathmap is still (erronously) documented #348
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.
@hsbt Is there any discussion thread on why the pathmap extension was removed from Pathname?
I could understand if the eventual goal is to remove it from String as well. Though as long as String has it, I'd expect Pathname to have it as well? If the eventual goal is to remove the extensions entirely (or perhaps make them opt-in?) should it be removed from both String and Pathname at the same time so the interfaces remain consistent?
Activity
hsbt commentedon Jul 6, 2021
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 .
dsisnero commentedon Nov 3, 2021
restore pathmap extension please. At least have it available to load 'require "rake/ext/pathmap"
jasonkarns commentedon Oct 31, 2022
@hsbt Is there any discussion thread on why the
pathmapextension was removed fromPathname?I could understand if the eventual goal is to remove it from String as well. Though as long as
Stringhas it, I'd expectPathnameto have it as well? If the eventual goal is to remove the extensions entirely (or perhaps make them opt-in?) should it be removed from bothStringandPathnameat the same time so the interfaces remain consistent?