module IpsumMaiden

Constants

VERSION
WORDS

Public Class Methods

paragraph() click to toggle source
# File lib/ipsum_maiden.rb, line 18
def paragraph
  sentences.join(" ")
end
paragraphs(count = rand(3..10)) click to toggle source
# File lib/ipsum_maiden.rb, line 22
def paragraphs(count = rand(3..10))
  count.times.map { paragraph }
end
sentence() click to toggle source
# File lib/ipsum_maiden.rb, line 10
def sentence
  "#{WORDS.sample(rand(3..25)).join(" ")}.".capitalize
end
sentences(count = rand(3..10)) click to toggle source
# File lib/ipsum_maiden.rb, line 14
def sentences(count = rand(3..10))
  count.times.map { sentence }
end
word() click to toggle source
# File lib/ipsum_maiden.rb, line 6
def word
  WORDS.sample
end