Module: Gem::Resolv::DNS::Label

Defined in:
lib/rubygems/vendor/resolv/lib/resolv.rb

Overview

:nodoc:

Defined Under Namespace

Classes: Str

Class Method Summary collapse

Class Method Details

.split(arg) ⇒ Object



1207
1208
1209
1210
1211
# File 'lib/rubygems/vendor/resolv/lib/resolv.rb', line 1207

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