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