Class: MyManga::CLI::Commands::Add

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

Overview

See desc

Instance Method Summary collapse

Methods inherited from MyManga::CLI::Command

#manga_names, #pad

Instance Method Details

#call(url:) ⇒ Object



11
12
13
14
15
16
17
# File 'lib/my_manga/add.rb', line 11

def call(url:)
  manga = MyManga.add(url)

  return unless manga

  puts %("#{manga.name}" added to your library!)
end