Class: OpenHAB::Core::AbstractUID

Inherits:
Object
  • Object
show all
Defined in:
lib/openhab/core/abstract_uid.rb

Overview

A non specific base class for unique identifiers.

Direct Known Subclasses

Things::UID

Instance Method Summary collapse

Instance Method Details

#==(other) ⇒ true, false

compares if equal to ‘other`, including string conversion

Returns:

  • (true, false)


16
17
18
19
20
# File 'lib/openhab/core/abstract_uid.rb', line 16

def ==(other)
  return true if equals(other)

  to_s == other
end