Module: Resolv::DNS::Label

Defined in:
lib/resolv.rb

Overview

:nodoc:

Defined Under Namespace

Classes: Str

Class Method Summary collapse

Class Method Details

.split(arg) ⇒ Object


1192
1193
1194
1195
1196
# File 'lib/resolv.rb', line 1192

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