Module: SignalLamp::LampHolder
- Defined in:
- lib/signal_lamp/lamp_holder.rb
Overview
The primary interface of SignalLamp. Mix this into an object, then use the #lamp() method to reach any features provided by SignalLamp::Lamp.
Instance Method Summary collapse
-
#lamp ⇒ Object
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.
Instance Method Details
#lamp ⇒ Object
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.
14 15 16 |
# File 'lib/signal_lamp/lamp_holder.rb', line 14 def lamp @lamp ||= SignalLamp::Lamp.new end |