Class | Fission::UI |
In: |
lib/fission/ui.rb
|
Parent: | Object |
stdout | [R] | Internal: Returns the stdout value. |
Internal: Initialize a UI object.
stdout - The object to use for stdout (default: $stdout). This provides
an easy way to capture/silence output if needed.
Examples
Fission::UI.new str_io = StringIO.new Fission::UI.new str_io
Internal: Outputs the specified arguments printf style. The ‘printf’ method will be called on the stdout object. Currently, this assuems there are two data items.
string - The printf String. key - The String for the first data item. value - The String for the second data item.
Examples
ui.output_printf "%s %s\n", 'foo', bar
Returns nothing.