Module: CoreExtensions::EmojiSub::String
- Defined in:
- lib/core_extensions/string.rb
Overview
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.
Instance Method Summary collapse
Instance Method Details
#emoji_sub(options = {}) ⇒ Object
10 11 12 |
# File 'lib/core_extensions/string.rb', line 10 def emoji_sub( = {}) ::EmojiSub.emoji_sub(self, ) end |
#emoji_sub!(options = {}) ⇒ Object
14 15 16 |
# File 'lib/core_extensions/string.rb', line 14 def emoji_sub!( = {}) replace emoji_sub() end |