In Files

  • resolv.rb

Resolv::DNS::Resource

Constants

ClassHash
ClassInsensitiveTypes
ClassValue

Standard (class generic) RRs

Public Class Methods

decode_rdata(msg) click to toggle source
 
               # File resolv.rb, line 1425
def self.decode_rdata(msg)
  raise NotImplementedError.new
end
            
get_class(type_value, class_value) click to toggle source
 
               # File resolv.rb, line 1448
def self.get_class(type_value, class_value)
  return ClassHash[[type_value, class_value]] ||
         Generic.create(type_value, class_value)
end
            

Public Instance Methods

==(other) click to toggle source
 
               # File resolv.rb, line 1429
def ==(other)
  return self.class == other.class &&
    self.instance_variables == other.instance_variables &&
    self.instance_variables.collect {|name| self.instance_eval name} ==
      other.instance_variables.collect {|name| other.instance_eval name}
end
            
encode_rdata(msg) click to toggle source
 
               # File resolv.rb, line 1421
def encode_rdata(msg)
  raise NotImplementedError.new
end
            
eql?(other) click to toggle source
 
               # File resolv.rb, line 1436
def eql?(other)
  return self == other
end
            
hash() click to toggle source
 
               # File resolv.rb, line 1440
def hash
  h = 0
  self.instance_variables.each {|name|
    h ^= self.instance_eval("#{name}.hash")
  }
  return h
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