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
Instance Method Details
#erb_load ⇒ Object
21
|
# File 'lib/hobix/out/redrum.rb', line 21
alias erb_load load
|
#extension ⇒ Object
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
|