Class: CLI

Inherits:
Thor
  • Object
show all
Defined in:
lib/learn-japanese/cli.rb

Instance Method Summary collapse

Instance Method Details

#choose_answerObject



16
17
18
19
# File 'lib/learn-japanese/cli.rb', line 16

def choose_answer()
  level = options['level'].to_i
  LearnJapanese.choose_answer(level)
end

#romajiObject



37
38
39
# File 'lib/learn-japanese/cli.rb', line 37

def romaji
  LearnJapanese.romaji
end

#short_answerObject



24
25
26
27
# File 'lib/learn-japanese/cli.rb', line 24

def short_answer()
  level = options['level'].to_i
  LearnJapanese.short_answer(level)
end

#soundObject



31
32
33
# File 'lib/learn-japanese/cli.rb', line 31

def sound
  LearnJapanese.sound
end

#versionObject



9
10
11
# File 'lib/learn-japanese/cli.rb', line 9

def version
  LearnJapanese.show_version
end