Class: Omnes::Subscriber::Module Private
- Inherits:
-
Module
- Object
- Module
- Omnes::Subscriber::Module
- Defined in:
- lib/omnes/subscriber.rb
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
- #autodiscover_strategy ⇒ Object readonly private
Instance Method Summary collapse
- #included(klass) ⇒ Object private
-
#initialize(autodiscover_strategy:) ⇒ Module
constructor
private
A new instance of Module.
Constructor Details
#initialize(autodiscover_strategy:) ⇒ Module
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 Module.
157 158 159 160 |
# File 'lib/omnes/subscriber.rb', line 157 def initialize(autodiscover_strategy:) @autodiscover_strategy = autodiscover_strategy super() end |
Instance Attribute Details
#autodiscover_strategy ⇒ 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.
155 156 157 |
# File 'lib/omnes/subscriber.rb', line 155 def autodiscover_strategy @autodiscover_strategy end |
Instance Method Details
#included(klass) ⇒ 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.
162 163 164 165 166 167 |
# File 'lib/omnes/subscriber.rb', line 162 def included(klass) klass.instance_variable_set(:@_mutex, Mutex.new) klass.instance_variable_set(:@_state, State.new(autodiscover_strategy: autodiscover_strategy)) klass.extend(ClassMethods) klass.include(InstanceMethods) end |