Class: Resolv::DNS::Resource::TXT (Ruby 2.3.4)

Resolv::DNS::Resource::TXT

Unstructured text resource.

Attributes

strings[R]

Returns an Array of Strings for this TXT record.

Public Class Methods

new(first_string, *rest_strings)
 
               # File resolv.rb, line 1992
def initialize(first_string, *rest_strings)
  @strings = [first_string, *rest_strings]
end
            

Public Instance Methods

data()

Returns the concatenated string from strings.

 
               # File resolv.rb, line 2004
def data
  @strings.join("")
end