class Gem::Resolv::DNS::Label::Str
:nodoc:
def ==(other)
def ==(other) return self.class == other.class && @downcase == other.downcase end
def eql?(other)
def eql?(other) return self == other end
def hash
def hash return @downcase.hash end
def initialize(string)
def initialize(string) @string = string # case insensivity of DNS labels doesn't apply non-ASCII characters. [RFC 4343] # This assumes @string is given in ASCII compatible encoding. @downcase = string.b.downcase end
def inspect
def inspect return "#<#{self.class} #{self}>" end
def to_s
def to_s return @string end