# File lib/domain_name.rb, line 142 def ==(other) other = DomainName.new(other) unless DomainName === other other.hostname == @hostname end