Module: Resolv::DNS::Label

Defined in:
lib/net/dns/resolv.rb,
lib/net/dns/resolvx.rb

Overview

:nodoc:

Defined Under Namespace

Classes: Str

Class Method Summary collapse

Class Method Details

.split(arg) ⇒ Object



985
986
987
988
989
# File 'lib/net/dns/resolv.rb', line 985

def self.split(arg)
  labels = []
  arg.scan(/[^\.]+/) {labels << Str.new($&)}
  return labels
end