class Resolv::DNS::Resource::TXT - Documentation for Ruby 3.4
Description: class Resolv::DNS::Resource::TXT: Unstructured text resource.
Keywords: ruby,class,Resolv::DNS::Resource::TXT

# class 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)
Source

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

### Public Instance Methods

data ()
Source

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

Returns the concatenated string from `strings`.