Method: Faker::HTML.heading
- Defined in:
- lib/faker/default/html.rb
.heading ⇒ String
Produces a random HTML header format.
15 16 17 18 |
# File 'lib/faker/default/html.rb', line 15 def heading level = rand(1..6) "<h#{level}>#{Lorem.word.capitalize}</h#{level}>" end |