Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
a different Lorem Ipsum generator
Ruby
branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
lib
test
.document
.gitignore
.travis.yml
Gemfile
Gemfile.lock
LICENSE
README.rdoc
Rakefile
VERSION
blasphemy.gemspec

README.rdoc

Blasphemy

A kind of… different Lorem Ipsum generator. Easily extensible. Surprise your client with thinking out of the box and stub texts with something more original than boring “Lorem ipsum dolor sit amet”.

You can call it a “framework” (wo ho hoo!) for building own Lorem Ipsum generators. We all now it's just for building and spewing surprisingly elaborate random curses.

Basically it all started as a joke gist inspired by John Mettraux who, in turn, suggested the idea after I've tweeted a link to Lorizzle.

Usage

Pretty straightforward Ruby here.

Using built-in MetalIpsum

It's in the Faker module space, to pay homage and avoid collisions. However it doesn't require original Faker and is purely self-contained.

require 'blasphemy'
generator = Faker::MetalIpsum.new
generator.paragraph
generator.sentence
generator.words

Own word-list

There is a class TabulaIpsum with an empty wordlist, waiting to be filled with any words you like.

generator = Faker::TabulaIpsum.new
generator.wordlist = ['lol', 'rotfl', 'omg', 'wtf']

Own generator class

For some more persistence, create a class like this

module Faker
  class MarketingIpsum < CustomIpsum
    def initialize
      @wordlist = ['success', 'patenting', 'innovative', 'milestone']
    end
  end
end

And use it like all the other above.

Forking and ideas

Contact me via github PM or e-mail. I don't have any specific idea on direction this little gem should be going.

Copyright

Copyright © 2010 Tomasz Stachewicz. See LICENSE for details.

Something went wrong with that request. Please try again.