APIdock / Ruby
/
method

transact

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

Executes a block as self

Example:

sh.transact  { system ("ls", "-l") | head > STDOUT }
# File lib/shell/command-processor.rb, line 272
 def transact(&block)
 begin
 @shell.instance_eval(&block)
 ensure
 check_point
 end
 end

AltStyle によって変換されたページ (->オリジナル) /