Module: BulletTrain::CoreExt::StringEmojiHelper
- Defined in:
- lib/bullet_train/core_ext/string_emoji_helper.rb
Instance Method Summary collapse
Instance Method Details
#only_emoji? ⇒ Boolean
10 11 12 13 |
# File 'lib/bullet_train/core_ext/string_emoji_helper.rb', line 10 def only_emoji? return false if strip.empty? strip_emojis.strip.empty? end |
#strip_emojis ⇒ Object
6 7 8 |
# File 'lib/bullet_train/core_ext/string_emoji_helper.rb', line 6 def strip_emojis gsub(Unicode::Emoji::REGEX, "") end |