Class | Dnsruby::Name::Label |
In: |
lib/Dnsruby/name.rb
|
Parent: | Object |
(RFC1035, section 3.1)
MaxLabelLength | = | 63 |
downcase | [R] | |
string | [R] |
# 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 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 398 398: def inspect 399: return "#<#{self.class} #{self.to_s}>" 400: end