Skip to content

Instantly share code, notes, and snippets.

@holysugar
Created February 18, 2015 06:39
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 holysugar/016590c0b9764395f5a0 to your computer and use it in GitHub Desktop.
Save holysugar/016590c0b9764395f5a0 to your computer and use it in GitHub Desktop.
x代目xx
require 'gimei'
def daime(max=99)
[*(2..max)].sample.to_s.tr('0123456789','〇一二三四五六七八九') + "代目"
end
def name
"#{daime}#{Gimei.first.kanji}"
end
# name
#=> "六六代目将太"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment