Method: ShellHelpers::PathnameExt::Base#call
- Defined in:
- lib/shell_helpers/pathname.rb
#call(prog, *args, pos: :last, full: false, **opts) ⇒ Object
calls an external program
357 358 359 360 361 362 363 364 |
# File 'lib/shell_helpers/pathname.rb', line 357 def call(prog,*args,pos: :last,full:false,**opts) name=to_s name=(self.class.pwd+self).to_s if full and relative? sh_args=args pos=sh_args.length if pos==:last sh_args[pos,0]=name Sh.sh(prog,*sh_args,**opts) end |