Module: Controll::Notify::Base::ClassMethods

Defined in:
lib/controll/notify/base.rb

Instance Method Summary collapse

Instance Method Details

#signal_typeObject



21
22
23
# File 'lib/controll/notify/base.rb', line 21

def signal_type
  @signal_type ||= self.name.demodulize.sub(/Handler$/, '').underscore.to_sym
end

#type(name) ⇒ Object



25
26
27
# File 'lib/controll/notify/base.rb', line 25

def type name
  @signal_type = name
end