class RemoveEmoji::Sanitize

Public Class Methods

call(*args) click to toggle source
# File lib/remove_emoji.rb, line 11
def self.call(*args)
  new(*args).sanitize
end
new(original_string) click to toggle source
# File lib/remove_emoji.rb, line 7
def initialize(original_string)
  @original_string = original_string
end

Public Instance Methods

sanitize() click to toggle source
# File lib/remove_emoji.rb, line 15
def sanitize
  @original_string.gsub(RemoveEmoji::MATCH_EMOJI_CODEPOINTS_RULE, '')
end