class Condate
Constants
- MENU
- VERSION
Public Class Methods
new(genre = 'any')
click to toggle source
# File lib/condate.rb, line 7 def initialize(genre = 'any') @genre = genre end
Public Instance Methods
decide()
click to toggle source
# File lib/condate.rb, line 11 def decide if @genre == 'any' || @any @genre = %w(japanese chinese western).sample @any = true end choice = MENU[@genre].sample end