Module: EvilEvents::Core::Events::EventExtensions::ClassSignature Private
- Included in:
- AbstractEvent
- Defined in:
- lib/evil_events/core/events/event_extensions/class_signature.rb,
lib/evil_events/core/events/event_extensions/class_signature/equalizer.rb,
lib/evil_events/core/events/event_extensions/class_signature/signature.rb
Overview
This module is part of a private API. You should avoid using this module if possible, as it may be removed or be changed in the future.
Defined Under Namespace
Modules: ClassMethods Classes: Equalizer, Signature
Class Method Summary collapse
- .included(base_class) ⇒ Object private
Instance Method Summary collapse
Class Method Details
.included(base_class) ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
11 12 13 14 15 16 17 |
# File 'lib/evil_events/core/events/event_extensions/class_signature.rb', line 11 def included(base_class) base_class.extend(ClassMethods) base_class.singleton_class.class_eval do attr_accessor :__creation_strategy__ end end |
Instance Method Details
#similar_to?(another_event) ⇒ Boolean
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
24 25 26 27 28 29 30 31 |
# File 'lib/evil_events/core/events/event_extensions/class_signature.rb', line 24 def similar_to?(another_event) id == another_event.id && type == another_event.type && payload == another_event.payload && == another_event. rescue NoMethodError false end |