class Regexy::Web::Email
Constants
- EMAIL_NORMAL
- EMAIL_RELAXED
- EMAIL_STRICT
Protected Instance Methods
regexp_for(mode)
click to toggle source
# File lib/regexy/web/email.rb, line 12 def regexp_for(mode) case mode when :relaxed then EMAIL_RELAXED when :normal then EMAIL_NORMAL when :strict then EMAIL_STRICT else nil end end