Class: MyManga::CLI::Commands::Add
- Inherits:
-
MyManga::CLI::Command
- Object
- Hanami::CLI::Command
- MyManga::CLI::Command
- MyManga::CLI::Commands::Add
- Defined in:
- lib/my_manga/add.rb
Overview
See desc
Instance Method Summary collapse
Methods inherited from MyManga::CLI::Command
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 |