module CoreExtensions::EmojiSub::String

This monkey patches String so that it can receive emoji_sub directives cf. github.com/armahillo/emoji_sub/issues/2 If you want to monkey patch your use of String, you should be able to include this module and that should do it.

Public Instance Methods

emoji_sub(options = {}) click to toggle source
# File lib/core_extensions/string.rb, line 10
def emoji_sub(options = {})
  ::EmojiSub.emoji_sub(self, options)
end
emoji_sub!(options = {}) click to toggle source
# File lib/core_extensions/string.rb, line 14
def emoji_sub!(options = {})
  replace emoji_sub(options)
end