class MyManga::CLI::Command
Base class for CLI
commands
Public Instance Methods
manga_names(input)
click to toggle source
# File lib/my_manga/command.rb, line 5 def manga_names(input) all = MyManga.names names = Array(input.to_s.split(',')).map(&:strip) names.empty? ? all : all & names end
pad(string, width, with: ' ')
click to toggle source
# File lib/my_manga/command.rb, line 12 def pad(string, width, with: ' ') string.ljust(width + 2, with) end