lib/dsc/command.rb
# Provide an open output while executing the block.
# @yieldparam output [IO] Opened IO
# @yield [output] Gives the output to the block
# @return [void]
Provide an open output while executing the block.
Provide an open output while executing the block .
def output
      unless @output == '--'
        output = File.open(option, 'w')
      else
        output = STDOUT
      end
      yield output
      output.close() unless @output == '--'
    end
def output unless @output == '--' output = File . open ( option , 'w' ) else output = STDOUT end yield output output . close ( ) unless @output == '--' end
Provide an open output while executing the block.
Provide an open output while executing the block .
None
void
output
<not_specific>
None
]
<not_specific>
Gives the output to the block
Gives the output to the block