Class: Hobix::Out::OkayNews

Inherits:
BaseOutput show all
Defined in:
lib/hobix/out/okaynews.rb

Instance Method Summary collapse

Methods inherited from BasePlugin

inherited, start

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

#extensionObject



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