Module: SPQR::Raiseable

Defined in:
lib/spqr/event.rb

Defined Under Namespace

Modules: ClassMixins, InstanceMixins

Class Method Summary collapse

Class Method Details

.included(receiver) ⇒ Object



150
151
152
153
154
155
156
157
# File 'lib/spqr/event.rb', line 150

def self.included(receiver)
  receiver.extend ClassMixins
  receiver.send :include, InstanceMixins
  
  name_components = receiver.name.to_s.split("::")
  receiver.qmf_class_name name_components.pop
  receiver.qmf_package_name name_components.join(".").downcase
end