Method: Command.raw_stdout

Defined in:
lib/command-set/results.rb

.raw_stdoutObject

If you need the actual IO for /dev/stdout, you can call this to get it. Useful inside of Results::Formatter subclasses, for instance, so that they can actually send messages out to the user.



24
25
26
27
28
29
30
# File 'lib/command-set/results.rb', line 24

def raw_stdout
  if $stdout.respond_to?(:__getobj__)
    $stdout.__getobj__
  else
    $stdout
  end
end