Class: GDK::OutputBuffered
- Inherits:
-
Object
- Object
- GDK::OutputBuffered
- 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
- #dump ⇒ Object
-
#initialize ⇒ OutputBuffered
constructor
A new instance of OutputBuffered.
- #stderr_handle ⇒ Object
- #stdout_handle ⇒ Object
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
#initialize ⇒ OutputBuffered
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
#dump ⇒ Object
21 22 23 |
# File 'lib/gdk/output_buffered.rb', line 21 def dump output.string end |
#stderr_handle ⇒ Object
17 18 19 |
# File 'lib/gdk/output_buffered.rb', line 17 def stderr_handle output end |
#stdout_handle ⇒ Object
13 14 15 |
# File 'lib/gdk/output_buffered.rb', line 13 def stdout_handle output end |