class TFTP::ClientUploader
Listeners
Public Class Methods
new(&block)
click to toggle source
# File lib/em-tftp.rb, line 368 def initialize(&block) @callback = block end
Public Instance Methods
completed()
click to toggle source
# File lib/em-tftp.rb, line 371 def completed @callback.call(true, nil) end
failed(error_msg)
click to toggle source
# File lib/em-tftp.rb, line 374 def failed(error_msg) @callback.call(false, error_msg) end