| 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 375
375: def initialize(string)
376: if (string.length > @@max_length)
377: raise ResolvError.new("Label too long (#{string.length}, max length=#{MaxLabelLength}). Label = #{string}")
378: end
379: @downcase = string.downcase
380: @string = string
381: end
# File lib/Dnsruby/name.rb, line 396
396: def <=>(other)
397: return (@downcase <=> other.downcase)
398: end
# File lib/Dnsruby/name.rb, line 401
401: def ==(other)
402: return @downcase == other.downcase
403: end
# File lib/Dnsruby/name.rb, line 392
392: def inspect
393: return "#<#{self.class} #{self.to_s}>"
394: end