Feature #7360

Adding Pathname#glob

Added by Alexander E. Fischer over 2 years ago. Updated over 2 years ago.

[ruby-core:49373]
Status:Assigned
Priority:Normal
Assignee:Akira Tanaka

Description

Currently there is only a Pathname.glob method, which allows you to find Pathname objects by a pattern including wildcard characters like '*'.

I would like to be able to use this relative to a current Pathname.

some_directory = Pathname.new('some_directory')
Pathname.glob(some_directory + 'a*') # all children starting with "a"

could then simply be:

some_directory.glob('a*') # all children starting with "a"

If you like the idea, please let me know. I will provide a patch then.


Related issues

Related to Ruby trunk - Feature #7378: Adding Pathname#write Closed 06/02/2012

History

#1 Updated by Yusuke Endoh over 2 years ago

  • Status changed from Open to Assigned
  • Assignee set to Akira Tanaka
  • Target version set to next minor

Also available in: Atom PDF