Method: Cmds#err

Defined in:
lib/cmds.rb

#err(*args, **kwds, &input_block) ⇒ String

captures and returns stdout (sugar for #capture(*subs, &input_block).err).

Parameters:

  • *args (Array<Object>)

    positional parameters to append to those in @args for rendering into the command string.

  • **kwds (Hash{Symbol => Object})

    keyword parameters that override those in @kwds for rendering into the command string.

  • &input_block (#call)

    optional block that returns a string or readable object to override @input.

Returns:

  • (String)

    the command's stderr.

See Also:



466
467
468
# File 'lib/cmds.rb', line 466

def err *args, **kwds, &input_block
  capture(*args, **kwds, &input_block).err
end