Method: Set#compare_by_identity?

Defined in:
lib/set.rb

#compare_by_identity?Boolean

Returns true if the set will compare its elements by their identity. Also see Set#compare_by_identity.

Returns:

  • (Boolean)

268
269
270
# File 'lib/set.rb', line 268

def compare_by_identity?
  @hash.respond_to?(:compare_by_identity?) && @hash.compare_by_identity?
end