Method: Cmds#out

Defined in:
lib/cmds.rb

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

captures and returns stdout (sugar for #capture(*args, **kwds, &input_block).out).

Parameters:

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

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

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

Returns:

  • the command's stdout.

See Also:



392
393
394
# File 'lib/cmds.rb', line 392

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