Method: ShellHelpers::PathnameExt::Base#rel_glob
- Defined in:
- lib/shell_helpers/pathname.rb
#rel_glob(pattern, expand: false) ⇒ Object
We now have Pathname#glob
282 283 284 285 286 287 288 289 290 |
# File 'lib/shell_helpers/pathname.rb', line 282 def rel_glob(pattern, expand: false) g=[] self.cd { g=Dir.glob(pattern) } if g.map {|f| self+f} else g.map {|f| Pathname.new(f)} end end |