Class | Dnsruby::RR::TXT |
In: |
lib/Dnsruby/resource/TXT.rb
|
Parent: | RR |
TypeValue | = | Types::TXT #:nodoc: all |
strings | [RW] | List of the individual elements |
# File lib/Dnsruby/resource/TXT.rb, line 36 36: def from_hash(hash) 37: if (hash.has_key?:strings) 38: from_string(hash[:strings]) 39: end 40: end
# File lib/Dnsruby/resource/TXT.rb, line 42 42: def from_string(input) 43: words = Shellwords.shellwords(input) 44: 45: @strings=[] 46: 47: if (words != nil) 48: words.each { |string| 49: string .gsub!(/\\"/, '"') 50: @strings.push(string) 51: } 52: end 53: end