Class: Daisougen::CLI

Inherits:
Thor
  • Object
show all
Defined in:
lib/daisougen/cli.rb

Instance Method Summary collapse

Instance Method Details

#gachaObject



9
10
11
12
13
14
15
16
17
18
# File 'lib/daisougen/cli.rb', line 9

def gacha
  result = Daisougen.gacha

  message = if options.key?(:emoji)
              result.map(&:emoji).join
            else
              result.map(&:kanji).join
            end
  puts message
end