Skip to content
This repository has been archived by the owner on Dec 24, 2019. It is now read-only.

toy/random_text

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

36 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

random_text

http://github.com/toy/random_text/tree/master

DESCRIPTION:

Class to make usage of http://vesna.yandex.ru/ and http://lipsum.com/ easier

SYNOPSIS:

include RandomText

Lorem.word
Lorem.words(5)

Lorem.uniq_words(10)

Lorem.sentence
Lorem.sentences(5)

Lorem.paragraph
Lorem.paragraphs(5)

Same can be done for Vesna

Vesna.word
…

Also there are binaries lorem and vesna

lorem word
lorem 10 words
lorem 20 uniq_words
lorem 7 sentensec
lorem 3 paragraphs

REQUIREMENTS:

ruby :)

INSTALL:

sudo gem install random_text

Copyright

Copyright (c) 2010-2011 Ivan Kuchin. See LICENSE.txt for details.