Class: Skylight::Core::Subscriber::ArrayPattern Private

Inherits:
Object
  • Object
show all
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

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