Class: Runaworld::Cli

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

Instance Method Summary collapse

Instance Method Details

#move(no = 1) ⇒ Object



27
28
29
# File 'lib/runaworld/cli.rb', line 27

def move(no = 1)
  Runaworld::Move.get_move(no.to_i)
end

#move_listObject



22
23
24
# File 'lib/runaworld/cli.rb', line 22

def move_list
  Runaworld::Move.get_move_list
end

#profileObject



5
6
7
# File 'lib/runaworld/cli.rb', line 5

def profile
  Runaworld::Profile.print_profile       
end

#word(type = nil) ⇒ Object



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

def word(type = nil)
  case type
  when 'all'
    Runaworld::Word.print_all_word
  when nil
    Runaworld::Word.print_random_word
  else
    STDERR.puts "argment error"
  end
end