Class: Sfacg::Cli

Inherits:
Thor
  • Object
show all
Defined in:
lib/sfacg/cli.rb

Instance Method Summary collapse

Instance Method Details

#chapter(url) ⇒ Object



23
24
25
# File 'lib/sfacg/cli.rb', line 23

def chapter url
  Chapter.new(url).download to: options[:to]
end

#comic(url) ⇒ Object



13
14
15
# File 'lib/sfacg/cli.rb', line 13

def comic url
  Comic.new(url).download to: options[:to]
end

#versionObject



28
29
30
# File 'lib/sfacg/cli.rb', line 28

def version
  puts VERSION
end