Method: ConvenientService::Support::Cache::Entities::Key#==

Defined in:
lib/convenient_service/support/cache/entities/key.rb

#==(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.

Parameters:

  • other (Object)

    Can be any type.

Returns:

  • (Boolean, nil)

Since:

  • 1.0.0



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