class Runaworld::Cli
Public Instance Methods
move(mode = 1, no = 1)
click to toggle source
# File lib/runaworld/cli.rb, line 28 def move(mode = 1, no = 1) case mode when /^[0-9]+$/ no = mode Runaworld::Move.get_move(no.to_i) when 'url' Runaworld::Move.get_move_url(no.to_i) when 'title' Runaworld::Move.get_move_title(no.to_i) when 'list' Runaworld::Move.get_move_list when 'latest' Runaworld::Move.get_move_latest else Runaworld::Move.get_move_list end end
move_list()
click to toggle source
# File lib/runaworld/cli.rb, line 23 def move_list Runaworld::Move.get_move_list end
profile()
click to toggle source
# File lib/runaworld/cli.rb, line 6 def profile Runaworld::Profile.print_profile end
word(type = nil)
click to toggle source
# File lib/runaworld/cli.rb, line 11 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