Class: Inch::Utils::BufferedUI
Instance Attribute Summary collapse
-
#err ⇒ Object
readonly
Returns the value of attribute err.
-
#out ⇒ Object
readonly
Returns the value of attribute out.
Instance Method Summary collapse
- #buffer ⇒ Object
-
#initialize(_stdout = $stdout, _stderr = $stderr) ⇒ BufferedUI
constructor
A new instance of BufferedUI.
Methods inherited from UI
#debug, #edged, #header, #sub, #trace, #use_color?, #warn
Constructor Details
#initialize(_stdout = $stdout, _stderr = $stderr) ⇒ BufferedUI
Returns a new instance of BufferedUI.
6 7 8 9 |
# File 'lib/inch/utils/buffered_ui.rb', line 6 def initialize(_stdout = $stdout, _stderr = $stderr) @io = StringIO.new super(@io, @io) end |
Instance Attribute Details
#err ⇒ Object (readonly)
Returns the value of attribute err.
4 5 6 |
# File 'lib/inch/utils/buffered_ui.rb', line 4 def err @err end |
#out ⇒ Object (readonly)
Returns the value of attribute out.
4 5 6 |
# File 'lib/inch/utils/buffered_ui.rb', line 4 def out @out end |
Instance Method Details
#buffer ⇒ Object
11 12 13 |
# File 'lib/inch/utils/buffered_ui.rb', line 11 def buffer @io.string end |