Class: LS4::Bus

Inherits:
EventBus::Bus show all
Defined in:
lib/ls4/service/bus.rb

Class Method Summary collapse

Methods included from EventBus::BusMixin

#ebus_all_slots, #ebus_disconnect!

Methods included from EventBus::DeclarerBase::Methods

#connect, #ebus_all_slots, #ebus_call_log, #ebus_call_slots, #ebus_signal_error, #ebus_signal_log, #ebus_signal_slots

Methods included from EventBus::DeclarerBase

#call_slot, #signal_slot

Class Method Details

.ebus_call_log(method, args, &block) ⇒ Object



22
23
24
# File 'lib/ls4/service/bus.rb', line 22

def self.ebus_call_log(method, args, &block)
	$log.trace { "ebus call #{method}" }
end

.ebus_signal_error(err) ⇒ Object



30
31
32
33
# File 'lib/ls4/service/bus.rb', line 30

def self.ebus_signal_error(err)
	$log.warn err
	$log.debug_backtrace err.backtrace
end

.ebus_signal_log(methods, args, &block) ⇒ Object



26
27
28
# File 'lib/ls4/service/bus.rb', line 26

def self.ebus_signal_log(methods, args, &block)
	$log.trace { "ebus signal #{methods.join(', ')}" }
end