Module: KO::Signals

Included in:
Object
Defined in:
lib/ko/signals.rb,
lib/ko/signals/signal.rb,
lib/ko/signals/validator.rb,
lib/ko/signals/connection.rb

Defined Under Namespace

Modules: AddSignal, InstanceMethods Classes: Connection, Signal, Validator

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.extended(base) ⇒ Object



34
35
36
37
38
# File 'lib/ko/signals.rb', line 34

def extended(base)
  base.include(InstanceMethods)
  base.extend(AddSignal)
  base.include(AddSignal)
end

Instance Method Details

#inherited(child) ⇒ Object

def method_added(name)

pp([self, name])

end



45
46
47
48
# File 'lib/ko/signals.rb', line 45

def inherited(child)
  super(child)
  child.signals.merge!(signals)
end

#signalsObject



50
# File 'lib/ko/signals.rb', line 50

def signals = @signals ||= {}