Class: MyManga::CLI::Commands::Remove

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

Overview

See desc

Instance Method Summary collapse

Methods inherited from MyManga::CLI::Command

#manga_names, #pad

Instance Method Details

#call(name:) ⇒ Object



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

def call(name:)
  return unless MyManga.remove(name)

  puts %("#{name}" removed from your library!)
end