Class: Newsgroups
Constant Summary
Constants included from BasicLogging
BasicLogging::DEBUG, BasicLogging::ERROR, BasicLogging::FATAL, BasicLogging::INFO, BasicLogging::Levels, BasicLogging::UNKNOWN, BasicLogging::WARN
Instance Attribute Summary collapse
-
#groups ⇒ Object
readonly
Returns the value of attribute groups.
-
#intro ⇒ Object
readonly
Returns the value of attribute intro.
-
#signature ⇒ Object
readonly
Returns the value of attribute signature.
Instance Method Summary collapse
-
#initialize(groups) ⇒ Newsgroups
constructor
A new instance of Newsgroups.
- #no_archive ⇒ Object
Methods included from BasicLogging
#clear_log, is_muted?, #level, #log, #log_name, mute, #set_level, #set_target, #target
Constructor Details
#initialize(groups) ⇒ Newsgroups
Returns a new instance of Newsgroups.
25 26 27 28 29 30 31 32 33 34 35 36 37 38 |
# File 'lib/newsgroups.rb', line 25 def initialize(groups) @config = Configuration.instance @groups = groups.split(',') debug('set signature, intro, no_archive') # set details for this post if @groups.size == 1 debug 'supersedes is ' << @config.SUPERSEDES.to_s debug 'Signature will ' << (@config.SUPERSEDES ? 'NOT ' : '') << 'be set' set_signature if !@config.SUPERSEDES set_intro set_no_archive end end |
Instance Attribute Details
#groups ⇒ Object (readonly)
Returns the value of attribute groups.
44 45 46 |
# File 'lib/newsgroups.rb', line 44 def groups @groups end |
#intro ⇒ Object (readonly)
Returns the value of attribute intro.
44 45 46 |
# File 'lib/newsgroups.rb', line 44 def intro @intro end |
#signature ⇒ Object (readonly)
Returns the value of attribute signature.
44 45 46 |
# File 'lib/newsgroups.rb', line 44 def signature @signature end |
Instance Method Details
#no_archive ⇒ Object
40 41 42 43 |
# File 'lib/newsgroups.rb', line 40 def no_archive debug('no_archive returning ' <<( @no_archive ? @no_archive : ' nil ') ) return @no_archive ? @no_archive : nil end |