Class Resolv::DNS::Label::Str
In: lib/resolv.rb
Parent: Object

Methods

==   eql?   hash   inspect   new   to_s  

Attributes

downcase  [R] 
string  [R] 

Public Class methods

[Source]

     # File lib/resolv.rb, line 936
936:         def initialize(string)
937:           @string = string
938:           @downcase = string.downcase
939:         end

Public Instance methods

[Source]

     # File lib/resolv.rb, line 950
950:         def ==(other)
951:           return @downcase == other.downcase
952:         end

[Source]

     # File lib/resolv.rb, line 954
954:         def eql?(other)
955:           return self == other
956:         end

[Source]

     # File lib/resolv.rb, line 958
958:         def hash
959:           return @downcase.hash
960:         end

[Source]

     # File lib/resolv.rb, line 946
946:         def inspect
947:           return "#<#{self.class} #{self.to_s}>"
948:         end

[Source]

     # File lib/resolv.rb, line 942
942:         def to_s
943:           return @string
944:         end

[Validate]