In Files

  • resolv.rb

Parent

Resolv::DNS::Label::Str

Attributes

downcase[R]
string[R]

Public Class Methods

new(string) click to toggle source
 
               # File resolv.rb, line 982
def initialize(string)
  @string = string
  @downcase = string.downcase
end
            

Public Instance Methods

==(other) click to toggle source
 
               # File resolv.rb, line 996
def ==(other)
  return @downcase == other.downcase
end
            
eql?(other) click to toggle source
 
               # File resolv.rb, line 1000
def eql?(other)
  return self == other
end
            
hash() click to toggle source
 
               # File resolv.rb, line 1004
def hash
  return @downcase.hash
end
            
inspect() click to toggle source
 
               # File resolv.rb, line 992
def inspect
  return "#<#{self.class} #{self.to_s}>"
end
            
to_s() click to toggle source
 
               # File resolv.rb, line 988
def to_s
  return @string
end
            

Commenting is here to help enhance the documentation. For example, code samples, or clarification of the documentation.

If you have questions about Ruby or the documentation, please post to one of the Ruby mailing lists. You will get better, faster, help that way.

If you wish to post a correction of the docs, please do so, but also file bug report so that it can be corrected for the next release. Thank you.

If you want to help improve the Ruby documentation, please visit Documenting-ruby.org.

blog comments powered by Disqus