Class: Hobix::BloglinesPlugin
- Inherits:
-
BasePlugin
- Object
- BasePlugin
- Hobix::BloglinesPlugin
- Defined in:
- lib/hobix/plugin/bloglines.rb
Overview
we just keep parameters from hobix.yaml here
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(weblog, params = {}) ⇒ BloglinesPlugin
constructor
A new instance of BloglinesPlugin.
Methods inherited from BasePlugin
Constructor Details
#initialize(weblog, params = {}) ⇒ BloglinesPlugin
Returns a new instance of BloglinesPlugin.
38 39 40 41 42 43 44 |
# File 'lib/hobix/plugin/bloglines.rb', line 38 def initialize(weblog, params = {}) raise %{the bloglines plugin needs a "userid" parameter. see hobix/plugin/bloglines.rb for details} unless params.member? "userid" @@userid = params["userid"] @@folder = params["folder"] @@title = params["title"] || "Blogroll" @@in_sidebarBox_div = lambda { |x| (x.nil? ? true : x) }[params["in-sidebarBox-div"]] end |
Class Method Details
.folder ⇒ Object
47 |
# File 'lib/hobix/plugin/bloglines.rb', line 47 def self.folder; @@folder; end |
.in_sidebarBox_div? ⇒ Boolean
49 |
# File 'lib/hobix/plugin/bloglines.rb', line 49 def self.; @@in_sidebarBox_div; end |
.title ⇒ Object
48 |
# File 'lib/hobix/plugin/bloglines.rb', line 48 def self.title; @@title; end |
.userid ⇒ Object
46 |
# File 'lib/hobix/plugin/bloglines.rb', line 46 def self.userid; @@userid; end |