Class Resolv::DNS::Resource::TXT
In: lib/resolv.rb
Parent: Resource

Unstructured text resource.

Methods

data   new  

Attributes

strings  [R]  Returns an Array of Strings for this TXT record.

Public Class methods

[Source]

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

Public Instance methods

Returns the first string from strings.

[Source]

      # File lib/resolv.rb, line 1805
1805:         def data
1806:           @strings[0]
1807:         end

[Validate]