Class: ConvenientService::Support::Cache::Entities::Key Private
- Inherits:
-
Object
- Object
- ConvenientService::Support::Cache::Entities::Key
- Defined in:
- lib/convenient_service/support/cache/entities/key.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 Method Summary collapse
- #==(other) ⇒ Boolean? private
- #eql?(other) ⇒ Boolean? private
- #hash ⇒ Object private
- #initialize(*args, **kwargs, &block) ⇒ void constructor private
Constructor Details
#initialize(*args, **kwargs, &block) ⇒ void
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.
19 20 21 22 23 |
# File 'lib/convenient_service/support/cache/entities/key.rb', line 19 def initialize(*args, **kwargs, &block) @args = args @kwargs = kwargs @block = block end |
Instance Method Details
#==(other) ⇒ 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.
29 30 31 32 33 34 35 36 37 |
# File 'lib/convenient_service/support/cache/entities/key.rb', line 29 def ==(other) return unless other.instance_of?(self.class) return false if args != other.args return false if kwargs != other.kwargs return false if block&.source_location != other.block&.source_location true end |
#eql?(other) ⇒ 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.
51 52 53 54 55 56 57 58 59 |
# File 'lib/convenient_service/support/cache/entities/key.rb', line 51 def eql?(other) return unless other.instance_of?(self.class) return false if args != other.args return false if kwargs != other.kwargs return false if block&.source_location != other.block&.source_location true end |
#hash ⇒ 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.
95 96 97 |
# File 'lib/convenient_service/support/cache/entities/key.rb', line 95 def hash [self.class, args, kwargs, block&.source_location].hash end |