Class: Hobix::Out::RedRum

Inherits:
ERB show all
Defined in:
lib/hobix/out/redrum.rb

Instance Method Summary collapse

Methods inherited from ERB

#expand, #import, #import_erb, #initialize

Methods inherited from BasePlugin

inherited, start

Constructor Details

This class inherits a constructor from Hobix::Out::ERB

Instance Method Details

#erb_loadObject



21
# File 'lib/hobix/out/redrum.rb', line 21

alias erb_load load

#extensionObject



20
# File 'lib/hobix/out/redrum.rb', line 20

def extension; "redrum"; end

#load(file_name, vars) ⇒ Object



22
23
24
# File 'lib/hobix/out/redrum.rb', line 22

def load( file_name, vars )
    RedCloth.new( erb_load( file_name, vars ) ).to_html
end