Class: MyManga::CLI::Commands::List

Inherits:
MyManga::CLI::Command show all
Defined in:
lib/my_manga/list.rb

Overview

See desc

Instance Method Summary collapse

Methods inherited from MyManga::CLI::Command

#manga_names, #pad

Instance Method Details

#call(names: nil) ⇒ Object



11
12
13
14
# File 'lib/my_manga/list.rb', line 11

def call(names: nil)
  names = manga_names(names)
  names.one? ? list_detail(names.first) : list(names)
end