Class: Skylight::Core::Subscriber::ArrayPattern Private
- Inherits:
-
Object
- Object
- Skylight::Core::Subscriber::ArrayPattern
- Defined in:
- lib/skylight/core/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 Method Summary collapse
- #===(item) ⇒ Object private
-
#initialize(keys) ⇒ ArrayPattern
constructor
private
A new instance of ArrayPattern.
Constructor Details
#initialize(keys) ⇒ ArrayPattern
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 ArrayPattern.
28 29 30 |
# File 'lib/skylight/core/subscriber.rb', line 28 def initialize(keys) @keys = Set.new keys end |
Instance Method Details
#===(item) ⇒ 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.
32 33 34 |
# File 'lib/skylight/core/subscriber.rb', line 32 def ===(item) @keys.include?(item) end |