Object
stackoverflow.com/questions/106179/regular-expression-to-match-hostname-or-ip-address ftp.rfc-editor.org/in-notes/rfc3696.txt domainkeys.sourceforge.net/underscore.html
# File lib/mspec/matchers/be_valid_dns_name.rb, line 12 def failure_message ["Expected '#{@actual}'", "to be a valid DNS name"] end
# File lib/mspec/matchers/be_valid_dns_name.rb, line 7 def matches?(actual) @actual = actual (VALID_DNS =~ @actual) == 0 end
# File lib/mspec/matchers/be_valid_dns_name.rb, line 16 def negative_failure_message ["Expected '#{@actual}'", "not to be a valid DNS name"] end
[Validate]
Generated with the Darkfish Rdoc Generator 2.