Gemのメモ ref: http://qiita.com/gam0022/items/d0660db48af9aee0b993