module Snacknomama

Constants

VERSION

Public Class Methods

mama() click to toggle source
# File lib/snacknomama.rb, line 17
def mama
  Gimei.female.first.katakana
end
snack() click to toggle source
# File lib/snacknomama.rb, line 12
def snack
  parser = Snacknomama::Parser.new
  "スナック #{parser.run.sample(rand(3)+1).join('')}"
end
zinsei() click to toggle source
# File lib/snacknomama.rb, line 21
def zinsei
  "両親#{ryoushin}->#{gakkou}学校#{gakkou_status}->結婚出産->旦那#{kekkonseikatsu}->離婚バツ#{batsu}"
end
zinsei_all() click to toggle source
# File lib/snacknomama.rb, line 7
def zinsei_all
  output = "店名: #{snack}\nママ: #{mama}\n人生: #{zinsei}"
  return output
end

Private Class Methods

batsu() click to toggle source
# File lib/snacknomama.rb, line 43
def batsu
  %w(1 2 3 4).sample
end
gakkou() click to toggle source
# File lib/snacknomama.rb, line 35
def gakkou
  %w(中 高等).sample
end
gakkou_status() click to toggle source
# File lib/snacknomama.rb, line 39
def gakkou_status
  %w(卒業 中退 退学).sample
end
kekkonseikatsu() click to toggle source
# File lib/snacknomama.rb, line 31
def kekkonseikatsu
  %w(浮気 暴力 酒 借金).sample
end
ryoushin() click to toggle source
# File lib/snacknomama.rb, line 27
def ryoushin
  %w(離婚 死別 富豪).sample
end