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 982
982:         def initialize(string)
983:           @string = string
984:           @downcase = string.downcase
985:         end

Public Instance methods

[Source]

     # File lib/resolv.rb, line 996
996:         def ==(other)
997:           return @downcase == other.downcase
998:         end

[Source]

      # File lib/resolv.rb, line 1000
1000:         def eql?(other)
1001:           return self == other
1002:         end

[Source]

      # File lib/resolv.rb, line 1004
1004:         def hash
1005:           return @downcase.hash
1006:         end

[Source]

     # File lib/resolv.rb, line 992
992:         def inspect
993:           return "#<#{self.class} #{self.to_s}>"
994:         end

[Source]

     # File lib/resolv.rb, line 988
988:         def to_s
989:           return @string
990:         end

[Validate]