Module: Epodder
- Defined in:
- lib/verb/update.rb,
lib/eclass.rb,
lib/epodder.rb,
lib/verb/add.rb,
lib/arguments.rb,
lib/verb/list.rb,
lib/verb/verb.rb,
lib/verb/clean.rb,
lib/verb/fetch.rb,
lib/verb/remove.rb,
lib/verb/catchup.rb,
lib/verb/download.rb,
lib/database/episode.rb,
lib/database/podcast.rb,
lib/configuration/configurator.rb
Overview
Defined Under Namespace
Classes: Add, Arguments, Catchup, Clean, Configurator, Download, Eclass, Episode, Fetch, List_podcast, Podcast, Remove, Update, Verb
Constant Summary
collapse
- @@verbose =
false
Class Method Summary
collapse
Instance Method Summary
collapse
Class Method Details
.do_verb(verb, args) ⇒ Object
14
15
16
17
18
|
# File 'lib/epodder.rb', line 14
def self.do_verb verb, args
c = Epodder.const_get(verb.to_s.capitalize)
verb_object = c.send :new
verb_object.send verb, args
end
|
.run ⇒ Object
20
21
22
23
24
|
# File 'lib/epodder.rb', line 20
def self.run
args = Arguments.new
Configurator.new(args)
do_verb args.action, args.arguments
end
|
Instance Method Details
#verbose=(state) ⇒ Object
10
11
12
|
# File 'lib/epodder.rb', line 10
def verbose= state
@@verbose = state
end
|
#verbose? ⇒ Boolean
6
7
8
|
# File 'lib/epodder.rb', line 6
def verbose?
@@verbose
end
|