module Emojinator

Constants

VERSION

Public Class Methods

call(string) click to toggle source
# File lib/emojinator.rb, line 7
def self.call(string)
  string.gsub(/(#{Constants::SWEAR_WORDS.join('|')})/i) { |_| Constants::EMOJI.sample }
end