Class: Opulent::Filters::RedCloth
- Defined in:
- lib/opulent/filters.rb
Instance Attribute Summary
Attributes inherited from Filter
Instance Method Summary collapse
Methods inherited from Filter
#initialize, #install_error, #load_filter
Constructor Details
This class inherits a constructor from Opulent::Filters::Filter
Instance Method Details
#gem_name ⇒ Object
227 228 229 |
# File 'lib/opulent/filters.rb', line 227 def gem_name 'RedCloth' end |
#render(code, options = {}) ⇒ Object
223 224 225 |
# File 'lib/opulent/filters.rb', line 223 def render(code, = {}) ::RedCloth.new(code, ).to_html end |