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.1.1"
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
10 11 12 |
# File 'lib/emoruby.rb', line 10 def self.emoji_to_ruby(source) EmojiScript.new(source).to_ruby end |
.eval(source) ⇒ Object
14 15 16 |
# File 'lib/emoruby.rb', line 14 def self.eval(source) __emoruby_top_level_binding_eval(emoji_to_ruby(source)) end |