Class: Hobix::RecentCommentsPlugin
- Inherits:
-
BasePlugin
- Object
- BasePlugin
- Hobix::RecentCommentsPlugin
- Defined in:
- lib/hobix/plugin/recent_comments.rb
Overview
we just keep parameters from hobix.yaml here
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(weblog, params = {}) ⇒ RecentCommentsPlugin
constructor
A new instance of RecentCommentsPlugin.
Methods inherited from BasePlugin
Constructor Details
#initialize(weblog, params = {}) ⇒ RecentCommentsPlugin
Returns a new instance of RecentCommentsPlugin.
33 34 35 |
# File 'lib/hobix/plugin/recent_comments.rb', line 33 def initialize(weblog, params = {}) @@num = params["num"] || 5 end |
Class Method Details
.num ⇒ Object
37 |
# File 'lib/hobix/plugin/recent_comments.rb', line 37 def self.num; @@num; end |