Skip to content

Instantly share code, notes, and snippets.

@siyo
Created February 15, 2013 13:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save siyo/4960284 to your computer and use it in GitHub Desktop.
Save siyo/4960284 to your computer and use it in GitHub Desktop.
# -*- coding: utf-8 -*-
# senzen tweet / earthquake plugin
#
# gem install moji
#
# e.g. :senzen あいうえお #=> アイウエオ
#
require 'moji'
Earthquake.init do
command %r|^:senzen\s+(.+)|, :as => :senzen do |m|
input(Moji.hira_to_kata m[1])
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment