Object
valid if passes all conditions
# File lib/validator/domain.rb, line 25 def valid? valid_by_length? and valid_by_label_length? and valid_by_regexp? end
# File lib/validator/domain.rb, line 16 def valid_by_label_length?(label_length = nil) !(@value.split(".").find{|f| f.length > (label_length || LABEL_LENGTH) and f.length > 1 }) end
Generated with the Darkfish Rdoc Generator 2.