ruby_emoji
A gem to convert the ":"-notation into an emoji.
This gem is not optimised for the web (html). If you want to use something like this but for the web please use rails_emoji
Build status
Installation
Install the latest stable release:
$ gem install ruby_emoji
Or with Bundler, add it to your Gemfile:
gem 'ruby_emoji'
Usage
Use the parse function:
RubyEmoji.parse("Awesome emoji :grin: :blush:") # => "Awesome emoji 😁 😊"
Or use the String#emoji method:
"Yay, I love emojies! :green_heart:".emoji # => "Yay, I love emojies! 💚"
Testing
$ bundle exec rake test
Contributing
If there is any thing you'd like to contribute or fix, please:
- Fork the repo
- Add tests for any new functionality
- Make your changes
- Verify all new & existing tests pass
- Make a pull request
License
The ruby_emoji gem is distributed under the MIT License.