Class: OpenHAB::Core::AbstractUID
- Inherits:
- 
      Object
      
        - Object
- OpenHAB::Core::AbstractUID
 
- Defined in:
- lib/openhab/core/abstract_uid.rb
Overview
A non specific base class for unique identifiers.
Direct Known Subclasses
Instance Method Summary collapse
- 
  
    
      #==(other)  ⇒ true, false 
    
    
  
  
  
  
  
  
  
  
  
    compares if equal to other, including string conversion.
- 
  
    
      #inspect  ⇒ Object 
    
    
  
  
  
  
  
  
  
  
  
    inspect result is just the string representation. 
- 
  
    
      #to_str  ⇒ Object 
    
    
  
  
  
  
  
  
  
  
  
    implicit conversion to string. 
Instance Method Details
#==(other) ⇒ true, false
compares if equal to other, including string conversion
| 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 | 
#inspect ⇒ Object
inspect result is just the string representation
| 12 | # File 'lib/openhab/core/abstract_uid.rb', line 12 alias_method :inspect, :to_s | 
#to_str ⇒ Object
implicit conversion to string
| 10 | # File 'lib/openhab/core/abstract_uid.rb', line 10 alias_method :to_str, :to_s | 
 
          