Method: ShellHelpers::PathnameExt::Base#entries
- Defined in:
- lib/shell_helpers/pathname.rb
#entries(filter: true) ⇒ Object
136 137 138 139 140 141 142 143 |
# File 'lib/shell_helpers/pathname.rb', line 136 def entries(filter: true) c=super() if filter c.reject {|c| c.to_s=="." or c.to_s==".."} else c end end |