Class: GDK::OutputBuffered

Inherits:
Object
  • Object
show all
Includes:
Output
Defined in:
lib/gdk/output_buffered.rb

Constant Summary

Constants included from Output

GDK::Output::COLORS, GDK::Output::COLOR_CODE_BLUE, GDK::Output::COLOR_CODE_GREEN, GDK::Output::COLOR_CODE_RED, GDK::Output::COLOR_CODE_YELLOW, GDK::Output::ICONS

Instance Method Summary collapse

Methods included from GDK::Output::ClassMethods

#abort, #ansi, #color, #colorize?, #debug, #divider, #ensure_utf8, #error, #force_encode_utf8, #format_error, #icon, #info, #interactive?, #notice, #notice_format, #print, #prompt, #puts, #reset_color, #success, #warn, #wrap_in_color

Constructor Details

#initializeOutputBuffered

Returns a new instance of OutputBuffered.



9
10
11
# File 'lib/gdk/output_buffered.rb', line 9

def initialize
  @output = StringIO.new
end

Instance Method Details

#dumpObject



21
22
23
# File 'lib/gdk/output_buffered.rb', line 21

def dump
  output.string
end

#stderr_handleObject



17
18
19
# File 'lib/gdk/output_buffered.rb', line 17

def stderr_handle
  output
end

#stdout_handleObject



13
14
15
# File 'lib/gdk/output_buffered.rb', line 13

def stdout_handle
  output
end