Class: Opulent::Filters::CData

Inherits:
Filter
  • Object
show all
Defined in:
lib/opulent/filters.rb

Instance Attribute Summary

Attributes inherited from Filter

#loaded, #name, #options

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_nameObject



175
176
177
# File 'lib/opulent/filters.rb', line 175

def gem_name
  nil
end

#render(code, _options = {}) ⇒ Object



171
172
173
# File 'lib/opulent/filters.rb', line 171

def render(code, _options = {})
  "<![CDATA[\n" + code + ']]>'
end