Class: MoveToGo::EmailHelper
- Inherits:
-
Object
- Object
- MoveToGo::EmailHelper
- Defined in:
- lib/move-to-go/email_helper.rb
Overview
The EmailHelper helps you validate email addresses.
Class Method Summary collapse
Class Method Details
.is_valid?(email) ⇒ Boolean
6 7 8 9 10 11 12 |
# File 'lib/move-to-go/email_helper.rb', line 6 def self.is_valid?(email) begin return (email =~ EmailAddressValidation::Pattern) ? true : false rescue return false end end |