Method: Middleman::Extensions::Lorem::LoremObject.sentences

Defined in:
lib/middleman-core/extensions/lorem.rb

.sentences(total) ⇒ String

Get some number of placeholder sentences

Parameters:

  • total (Fixnum)

Returns:

  • (String)


73
74
75
76
77
# File 'lib/middleman-core/extensions/lorem.rb', line 73

def sentences(total)
  (1..total).map do
    words(randm(4..15)).capitalize
  end.join('. ')
end