Class: Redaction::Types::Html

Inherits:
Base
  • Object
show all
Includes:
ActionView::Helpers::TagHelper
Defined in:
lib/redaction/types/html.rb

Instance Attribute Summary

Attributes inherited from Base

#data, #record

Instance Method Summary collapse

Methods inherited from Base

call, #initialize

Constructor Details

This class inherits a constructor from Redaction::Types::Base

Instance Method Details

#contentObject



11
12
13
# File 'lib/redaction/types/html.rb', line 11

def content
  1.upto(rand(1..3)).map { (:p, generate_paragraph.html_safe) }.join("\n")
end