Class: EvilEvents::Core::Events::EventExtensions::ClassSignature::Equalizer Private
- Inherits:
-
Object
- Object
- EvilEvents::Core::Events::EventExtensions::ClassSignature::Equalizer
- Defined in:
- lib/evil_events/core/events/event_extensions/class_signature/equalizer.rb
Overview
This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.
Instance Attribute Summary collapse
- #signature_a ⇒ Object readonly private
- #signature_b ⇒ Object readonly private
Instance Method Summary collapse
- #equal_adapter? ⇒ Boolean private
- #equal_class? ⇒ Boolean private
- #equal_delegator? ⇒ Boolean private
- #equal_metadata? ⇒ Boolean private
- #equal_payload? ⇒ Boolean private
- #equal_type_alias? ⇒ Boolean private
-
#initialize(signature_a, signature_b) ⇒ Equalizer
constructor
private
A new instance of Equalizer.
- #similar_signatures? ⇒ Boolean private
Constructor Details
#initialize(signature_a, signature_b) ⇒ Equalizer
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.
Returns a new instance of Equalizer.
20 21 22 23 |
# File 'lib/evil_events/core/events/event_extensions/class_signature/equalizer.rb', line 20 def initialize(signature_a, signature_b) @signature_a = signature_a @signature_b = signature_b end |
Instance Attribute Details
#signature_a ⇒ Object (readonly)
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.
10 11 12 |
# File 'lib/evil_events/core/events/event_extensions/class_signature/equalizer.rb', line 10 def signature_a @signature_a end |
#signature_b ⇒ Object (readonly)
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.
14 15 16 |
# File 'lib/evil_events/core/events/event_extensions/class_signature/equalizer.rb', line 14 def signature_b @signature_b end |
Instance Method Details
#equal_adapter? ⇒ 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.
49 50 51 |
# File 'lib/evil_events/core/events/event_extensions/class_signature/equalizer.rb', line 49 def equal_adapter? signature_a.adapter_stamp == signature_b.adapter_stamp end |
#equal_class? ⇒ 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.
63 64 65 |
# File 'lib/evil_events/core/events/event_extensions/class_signature/equalizer.rb', line 63 def equal_class? signature_a.class_stamp == signature_b.class_stamp end |
#equal_delegator? ⇒ 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.
42 43 44 |
# File 'lib/evil_events/core/events/event_extensions/class_signature/equalizer.rb', line 42 def equal_delegator? signature_a.delegator_stamp == signature_b.delegator_stamp end |
#equal_metadata? ⇒ 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.
35 36 37 |
# File 'lib/evil_events/core/events/event_extensions/class_signature/equalizer.rb', line 35 def signature_a. == signature_b. end |
#equal_payload? ⇒ 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.
28 29 30 |
# File 'lib/evil_events/core/events/event_extensions/class_signature/equalizer.rb', line 28 def equal_payload? signature_a.payload_stamp == signature_b.payload_stamp end |
#equal_type_alias? ⇒ 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.
56 57 58 |
# File 'lib/evil_events/core/events/event_extensions/class_signature/equalizer.rb', line 56 def equal_type_alias? signature_a.type_alias_stamp == signature_b.type_alias_stamp end |
#similar_signatures? ⇒ 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.
71 72 73 74 75 76 77 78 |
# File 'lib/evil_events/core/events/event_extensions/class_signature/equalizer.rb', line 71 def similar_signatures? equal_type_alias? && equal_class? && equal_payload? && && equal_delegator? && equal_adapter? end |