Sha256: c3f5bd9f8f0b870c09c43c09c04742b1a136776708713a90443ce1c638deeefe
Contents?: true
Size: 895 Bytes
Versions: 5
Compression:
Stored size: 895 Bytes
Contents
# Author:: Nicolas Despres <nicolas.despres@gmail.com>. # Copyright:: Copyright (c) 2004, 2005 TTK team. All rights reserved. # License:: LGPL # $Id: DRbService.rb 567 2005-04-13 08:00:06Z polrop $ module TTK module Services class DRbService < DRb::DRbService include Observable require 'ttk/services/DRbService/sub_testable' module Notification START = :service_start STOP = :service_stop end # module Notification def start_service(uri) super changed notify_observers(Notification::START, @uri.to_s) end def stop_service super changed notify_observers(Notification::STOP, @uri.to_s) end def update(*args, &block) changed notify_observers(*args, &block) end end # class DRbService end # module Services end # module TTK
Version data entries
5 entries across 5 versions & 1 rubygems