class CuffSert::BasePresenter
Public Class Methods
new(events)
click to toggle source
# File lib/cuffsert/presenters.rb, line 19 def initialize(events) events.subscribe( method(:on_event), method(:on_error), method(:on_complete) ) end
Public Instance Methods
on_complete()
click to toggle source
# File lib/cuffsert/presenters.rb, line 33 def on_complete end
on_error(err)
click to toggle source
# File lib/cuffsert/presenters.rb, line 27 def on_error(err) STDERR.puts'Error:' STDERR.puts err STDERR.puts err.backtrace.join("\n\t") end
update_width(width)
click to toggle source
# File lib/cuffsert/presenters.rb, line 36 def update_width(width) end