Class: Hobix::Out::OkayNews
- Inherits:
-
BaseOutput
- Object
- BasePlugin
- BaseOutput
- Hobix::Out::OkayNews
- Defined in:
- lib/hobix/out/okaynews.rb
Instance Method Summary collapse
- #extension ⇒ Object
-
#initialize(weblog) ⇒ OkayNews
constructor
A new instance of OkayNews.
- #load(file_name, vars) ⇒ Object
Methods inherited from BasePlugin
Constructor Details
#initialize(weblog) ⇒ OkayNews
Returns a new instance of OkayNews.
44 45 46 |
# File 'lib/hobix/out/okaynews.rb', line 44 def initialize( weblog ) @path = weblog.skel_path end |
Instance Method Details
#extension ⇒ Object
47 48 49 |
# File 'lib/hobix/out/okaynews.rb', line 47 def extension "okaynews" end |
#load(file_name, vars) ⇒ Object
50 51 52 |
# File 'lib/hobix/out/okaynews.rb', line 50 def load( file_name, vars ) vars[:weblog].to_okaynews( vars[:entries] || [vars[:entry]] ) end |