132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
|
# File 'lib/ffaker/html_ipsum.rb', line 132
def fancy_string(count = 3, include_breaks = false)
sep = include_breaks ? '<br>' : ' '
a = k([
content_tag_for(:strong, words(2).capitalize!),
content_tag_for(:em, paragraph),
content_tag_for(:mark, paragraph),
content_tag_for(:del, words(2)),
content_tag_for(:ins, words(2)),
content_tag_for(:sub, words(2)),
content_tag_for(:sup, words(2)),
content_tag_for(:code, words(2)),
content_tag_for(:small, words(2)),
(a 2).to_s
] + FFaker::Lorem.paragraphs(count - 1))
fetch_sample(a, count: count).join(sep)
end
|