Module: BigBananajour::EmailMangleHelper
- Included in:
- Bananajour
- Defined in:
- lib/bigbananajour/email_mangle_helper.rb
Instance Method Summary collapse
Instance Method Details
#demangle_email(email) ⇒ Object
3 4 5 |
# File 'lib/bigbananajour/email_mangle_helper.rb', line 3 def demangle_email(email) email.gsub(/_at_/, "@").gsub(/_dot_/, ".") end |
#mangle_email(email) ⇒ Object
6 7 8 |
# File 'lib/bigbananajour/email_mangle_helper.rb', line 6 def mangle_email(email) email.gsub(/@/, "_at_").gsub(/\./, "_dot_") end |