Class: View::HtmlSafe
- Inherits:
-
Formatter
- Object
- Formatter
- View::HtmlSafe
- Defined in:
- lib/view/formatters/html_safe.rb
Overview
This formatter marks the value as html safe
Instance Attribute Summary
Attributes inherited from Formatter
Instance Method Summary (collapse)
Methods inherited from Formatter
#all_options, as, #format!, inherited, #options, skip_blank_formatter, #to_s, type
Instance Method Details
- (Object) format
6 7 8 |
# File 'lib/view/formatters/html_safe.rb', line 6 def format value.to_s.html_safe end |