module Rumoji
Public Instance Methods
erase(str)
click to toggle source
# File lib/rumoji/erase.rb, line 2 def erase(str) str.gsub(/:([^s:]?[\w-]+):/) do |sym| Emoji.find(Regexp.last_match[1].intern) ? '' : sym.to_s end end