Module: Gio::PollableOutputStream

Defined in:
lib/gio2/pollable-output-stream.rb

Instance Method Summary collapse

Instance Method Details

#create_source(&block) ⇒ Object



20
21
22
23
24
25
# File 'lib/gio2/pollable-output-stream.rb', line 20

def create_source(&block)
  source = create_source_raw
  source.extend(PollableSource)
  source.set_callback(&block)
  source
end

#create_source_rawObject



19
# File 'lib/gio2/pollable-output-stream.rb', line 19

alias_method :create_source_raw, :create_source