module ValidatesFormattingOf class ValidatingMethods class << self # This method is very close to allowing what is specified in RFC 5322 and RFC 5321 def email %r{\A([^@\s]+)@((?:(?!-)[-a-z0-9]+(?