Class: Output

Inherits:
StringIO
  • Object
show all
Defined in:
lib/bitferry/fx.rb

Instance Method Summary collapse

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

#flushObject



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) }