create(arg)
Creates a new DNS name from arg. arg can be:
Name
returns arg.
String
Creates a new Name.
# File lib/resolv.rb, line 1248 def self.create(arg) case arg when Name return arg when String return Name.new(Label.split(arg), /\.\z/ =~ arg ? true : false) else raise ArgumentError.new("cannot interpret as DNS name: #{arg.inspect}") end end