Sha256: 90711d06437f2cdb80b31fa94f1fa493a5ed3df4b5e1f8aa1edd953e475f64d4
Contents?: true
Size: 363 Bytes
Versions: 1
Compression:
Stored size: 363 Bytes
Contents
require 'email_munger/version' # module EmailMunger def self.encode(str_input) str_output = '' str_input.each_char do |c| str_c = '&#' + c.ord.to_s + ';' str_c = "<i>#{str_c}</i>" if c == '@' || c == '.' str_output += str_c end str_output end end # Your new gem is a module by default. You may wish to use a class instead.
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
email_munger-0.0.0 | lib/email_munger.rb |