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 1794
1794:         def initialize(first_string, *rest_strings)
1795:           @strings = [first_string, *rest_strings]
1796:         end

Public Instance methods

Returns the first string from strings.

[Source]

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

[Validate]