Sha256: d6b5e9b4bde917b93be495277909a36a0a8d410648efaf6958fb7ac1221b02c0

Contents?: true

Size: 166 Bytes

Versions: 22

Compression:

Stored size: 166 Bytes

Contents

class String
  def strip_emojis
    gsub(Unicode::Emoji::REGEX, "")
  end

  def only_emoji?
    return false if strip.empty?
    strip_emojis.strip.empty?
  end
end

Version data entries

22 entries across 22 versions & 1 rubygems

Version Path
bullet_train-1.0.49 lib/string/emoji.rb
bullet_train-1.0.48 lib/string/emoji.rb
bullet_train-1.0.47 lib/string/emoji.rb
bullet_train-1.0.46 lib/string/emoji.rb
bullet_train-1.0.45 lib/string/emoji.rb
bullet_train-1.0.42 lib/string/emoji.rb
bullet_train-1.0.41 lib/string/emoji.rb
bullet_train-1.0.40 lib/string/emoji.rb
bullet_train-1.0.39 lib/string/emoji.rb
bullet_train-1.0.38 lib/string/emoji.rb
bullet_train-1.0.37 lib/string/emoji.rb
bullet_train-1.0.36 lib/string/emoji.rb
bullet_train-1.0.35 lib/string/emoji.rb
bullet_train-1.0.34 lib/string/emoji.rb
bullet_train-1.0.33 lib/string/emoji.rb
bullet_train-1.0.32 lib/string/emoji.rb
bullet_train-1.0.31 lib/string/emoji.rb
bullet_train-1.0.30 lib/string/emoji.rb
bullet_train-1.0.29 lib/string/emoji.rb
bullet_train-1.0.28 lib/string/emoji.rb