Object
(RFC1035, section 3.1)
# File lib/Dnsruby/name.rb, line 380 380: def initialize(string) 381: if (string.length > @@max_length) 382: raise ResolvError.new("Label too long (#{string.length}, max length=#{MaxLabelLength}). Label = #{string}") 383: end 384: @downcase = string.downcase 385: @string = string 386: @string_length = string.length 387: end
# File lib/Dnsruby/name.rb, line 376 376: def self.set_max_length(l) 377: @@max_length=l 378: end
Split a Name into its component Labels
# File lib/Dnsruby/name.rb, line 372 372: def self.split(arg) 373: return Name.split(arg) 374: end
# File lib/Dnsruby/name.rb, line 402 402: def <=>(other) 403: return (@downcase <=> other.downcase) 404: end
# File lib/Dnsruby/name.rb, line 407 407: def ==(other) 408: return @downcase == other.downcase 409: end
# File lib/Dnsruby/name.rb, line 411 411: def eql?(other) 412: return self == other 413: end
# File lib/Dnsruby/name.rb, line 415 415: def hash 416: return @downcase.hash 417: end
# File lib/Dnsruby/name.rb, line 398 398: def inspect 399: return "#<#{self.class} #{self.to_s}>" 400: end
Disabled; run with --debug to generate this.
Generated with the Darkfish Rdoc Generator 1.1.6.