Module: IpsumMaiden
- Defined in:
- lib/ipsum_maiden.rb,
lib/ipsum_maiden/version.rb
Constant Summary collapse
- WORDS =
%w( acts agony ancient anger apocalyptic ash ashes axe battle beast beyond black blood brain breathe brutal burn burning cadaver chaos church circle cold conjuring corpse cow cries crypt cryptic cult dark dead death decapitate demon demonic demons devil divine doom dragon dream dreams eternal eternity evil excruciating face fall fallen fear feast feasting fest fire flame flames flesh force forest forge frost funeral gate goat god gods goodbye gore grace grim grind hand hate haunted head hell horror horse human infernal iron kill killing lost maiden maims mass massacre massacres metal monster moon morbid murder necro night nocturnal noise pain pray rage rain raven reign ritual rot ruin satan satanic scream screaming serpent shadow sick skull slaughter slime sorrow soul sphere spirit steel stone storm suffer sword tear terror thrash throne torment torture undead unholy veins vulgar war wind winter witch wolf wrath )
- VERSION =
"0.1.0"
Class Method Summary collapse
- .paragraph ⇒ Object
- .paragraphs(count = rand(3..10)) ⇒ Object
- .sentence ⇒ Object
- .sentences(count = rand(3..10)) ⇒ Object
- .word ⇒ Object
Class Method Details
.paragraph ⇒ Object
18 19 20 |
# File 'lib/ipsum_maiden.rb', line 18 def paragraph sentences.join(" ") end |
.paragraphs(count = rand(3..10)) ⇒ Object
22 23 24 |
# File 'lib/ipsum_maiden.rb', line 22 def paragraphs(count = rand(3..10)) count.times.map { paragraph } end |
.sentence ⇒ Object
10 11 12 |
# File 'lib/ipsum_maiden.rb', line 10 def sentence "#{WORDS.sample(rand(3..25)).join(" ")}.".capitalize end |
.sentences(count = rand(3..10)) ⇒ Object
14 15 16 |
# File 'lib/ipsum_maiden.rb', line 14 def sentences(count = rand(3..10)) count.times.map { sentence } end |
.word ⇒ Object
6 7 8 |
# File 'lib/ipsum_maiden.rb', line 6 def word WORDS.sample end |