module SignalLamp::LampHolder
The primary interface of SignalLamp
. Mix this into an object, then use the lamp()
method to reach any features provided by SignalLamp::Lamp
.
Public Instance Methods
lamp()
click to toggle source
Returns a memoized SignalLamp::Lamp
instance that can be used to SignalLamp::Lamp#signal()
events and SignalLamp::Lamp#watch_for()
events related to the object this module is mixed into.
# File lib/signal_lamp/lamp_holder.rb, line 14 def lamp @lamp ||= SignalLamp::Lamp.new end