Module: L43Rmap::Functions::Predefined::Shell

Extended by:
Shell
Included in:
Shell
Defined in:
lib/l43_rmap/functions/predefined/shell.rb

Instance Method Summary collapse

Instance Method Details

#se(rt, *args) ⇒ Object



7
8
9
10
11
12
13
14
15
16
# File 'lib/l43_rmap/functions/predefined/shell.rb', line 7

def se(rt, *args)
  case args
  in []
    rt.line.shellescape
  in [fn]
    fn.shellescape
  else
    raise ArgumentError, "se needs at most 1 argument, but got: #{args.inspect}"
  end
end