Class: Redaction::Types::Html
- Includes:
- ActionView::Helpers::TagHelper
- Defined in:
- lib/redaction/types/html.rb
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
Methods inherited from Base
Constructor Details
This class inherits a constructor from Redaction::Types::Base
Instance Method Details
#content ⇒ Object
11 12 13 |
# File 'lib/redaction/types/html.rb', line 11 def content 1.upto(rand(1..3)).map { content_tag(:p, generate_paragraph.html_safe) }.join("\n") end |