Sha256: 70f39fa7c6c4adb9c83340873cb59bd0b7982baa8fbfcd82417b9375983b69b5

Contents?: true

Size: 295 Bytes

Versions: 2

Compression:

Stored size: 295 Bytes

Contents

# encoding: utf-8

require 'ffakerer/lorem'

module Faker
  # Thanks to http://baconipsum.com/
  module BaconIpsum
    include Lorem

    extend ModuleUtils
    extend self

    def word
      BACON_WORDS.rand
    end

    def words(num = 3)
      BACON_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/bacon_ipsum.rb
ffakerer-1.0.1 lib/ffakerer/bacon_ipsum.rb