Method: Pathname#dirs
- Defined in:
- lib/pleasant_path/pathname.rb
#dirs ⇒ Array<Pathname>
Returns the direct child directories of the directory indicated by the Pathname. Returned Pathnames are prefixed by the original Pathname.
106 107 108 |
# File 'lib/pleasant_path/pathname.rb', line 106 def dirs self.children.tap{|c| c.select!(&:dir?) } end |