method

transact

ruby latest stable - Class: Shell::CommandProcessor
transact(&block)
public

Executes a block as self

Example:

sh.transact { system("ls", "-l") | head > STDOUT }