Module: Emoruby
- Defined in:
- lib/emoruby/util/string.rb,
lib/emoruby.rb,
lib/emoruby/require.rb,
lib/emoruby/version.rb,
lib/emoruby/emoji_script.rb,
lib/emoruby/converts_emoji_to_ruby.rb
Overview
Ripped pretty much right out of activesupport 4.1.8 activesupport/lib/active_support/inflector/methods.rb
Defined Under Namespace
Modules: Util Classes: ConvertsEmojiToRuby, EmojiScript, Require
Constant Summary collapse
- VERSION =
"0.2.0"
Class Method Summary collapse
- .emoji_to_ruby(source) ⇒ Object
- .eval(source) ⇒ Object
- .register(file_extension = "emoruby") ⇒ Object
Class Method Details
.emoji_to_ruby(source) ⇒ Object
5 6 7 |
# File 'lib/emoruby.rb', line 5 def self.emoji_to_ruby(source) EmojiScript.new(source).to_ruby end |
.eval(source) ⇒ Object
9 10 11 |
# File 'lib/emoruby.rb', line 9 def self.eval(source) TOPLEVEL_BINDING.eval(emoji_to_ruby(source)) end |