Class: Newsgroups
Constant Summary collapse
- @@config =
class-level configuration object
Configuration.instance
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.
Attributes included from BasicLogging
Instance Method Summary collapse
-
#initialize(groups) ⇒ Newsgroups
constructor
A new instance of Newsgroups.
- #xnay ⇒ Object
Methods included from BasicLogging
is_muted?, #log, mute, #set_level, #set_target
Constructor Details
#initialize(groups) ⇒ Newsgroups
Returns a new instance of Newsgroups.
26 27 28 29 30 31 32 33 34 35 |
# File 'lib/newsgroups.rb', line 26 def initialize(groups) @groups = groups.split(',') debug('set signature, intro, xnay') # set details for this post if @groups.size == 1 set_signature set_intro set_xnay end end |
Instance Attribute Details
#groups ⇒ Object (readonly)
Returns the value of attribute groups.
41 42 43 |
# File 'lib/newsgroups.rb', line 41 def groups @groups end |
#intro ⇒ Object (readonly)
Returns the value of attribute intro.
41 42 43 |
# File 'lib/newsgroups.rb', line 41 def intro @intro end |
#signature ⇒ Object (readonly)
Returns the value of attribute signature.
41 42 43 |
# File 'lib/newsgroups.rb', line 41 def signature @signature end |
Instance Method Details
#xnay ⇒ Object
37 38 39 40 |
# File 'lib/newsgroups.rb', line 37 def xnay debug('returning ' <<( @xnay ? @xnay : ' nil ') ) return @xnay ? @xnay : nil end |