Class: Output
- Inherits:
-
StringIO
- Object
- StringIO
- Output
- Defined in:
- lib/bitferry/fx.rb
Instance Method Summary collapse
- #flush ⇒ Object
-
#initialize(app, output) ⇒ Output
constructor
A new instance of Output.
- #write(*args) ⇒ Object
Constructor Details
#initialize(app, output) ⇒ Output
Returns a new instance of Output.
11 12 13 14 15 16 |
# File 'lib/bitferry/fx.rb', line 11 def initialize(app, output) super('rw+') @app = app @output = output @output.text = nil end |
Instance Method Details
#flush ⇒ Object
20 |
# File 'lib/bitferry/fx.rb', line 20 def flush = nil |
#write(*args) ⇒ Object
18 |
# File 'lib/bitferry/fx.rb', line 18 def write(*args) = @app.runOnUiThread { @output.appendText(args.join) } |