class Psychic::OutputHelper::StringShell

Attributes

io[R]
stderr[R]
stdout[R]

Public Class Methods

new(*args) click to toggle source
Calls superclass method
# File lib/psychic/output_helper.rb, line 6
def initialize(*args)
  @io = StringIO.new
  super
end

Public Instance Methods

can_display_colors?() click to toggle source
# File lib/psychic/output_helper.rb, line 18
def can_display_colors?
  # Still capture colors if they can eventually be displayed.
  $stdout.tty?
end
string() click to toggle source
# File lib/psychic/output_helper.rb, line 14
def string
  @io.string
end