Sha256: 216ce88ad190e470f684d10a91b1bc22e757a8c260c1dc92e93378d6f8a414e3

Contents?: true

Size: 301 Bytes

Versions: 2

Compression:

Stored size: 301 Bytes

Contents

# encoding: utf-8

require 'ffakerer/lorem'

module Faker
  # thanks to http://hipsteripsum.me
  module HipsterIpsum
    include Lorem

    extend ModuleUtils
    extend self

    def word
      HIPSTER_WORDS.rand
    end

    def words(num = 3)
      HIPSTER_WORDS.random_pick(num)
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
ffakerer-1.0.2 lib/ffakerer/hipster_ipsum.rb
ffakerer-1.0.1 lib/ffakerer/hipster_ipsum.rb