Class: Hobix::RecentCommentsPlugin

Inherits:
BasePlugin show all
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

Methods inherited from BasePlugin

inherited, start

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

.numObject



37
# File 'lib/hobix/plugin/recent_comments.rb', line 37

def self.num; @@num; end