In Files

  • resolv.rb

Resolv::DNS::Resource::TXT

Constants

TypeValue

Attributes

strings[R]

Public Class Methods

decode_rdata(msg) click to toggle source
 
               # File resolv.rb, line 1615
def self.decode_rdata(msg)
  strings = msg.get_string_list
  return self.new(*strings)
end
            
new(first_string, *rest_strings) click to toggle source
 
               # File resolv.rb, line 1602
def initialize(first_string, *rest_strings)
  @strings = [first_string, *rest_strings]
end
            

Public Instance Methods

data() click to toggle source
 
               # File resolv.rb, line 1607
def data
  @strings[0]
end
            
encode_rdata(msg) click to toggle source
 
               # File resolv.rb, line 1611
def encode_rdata(msg)
  msg.put_string_list(@strings)
end