Sha256: 78d65f6d8be845b5f29fec88904fc904c1a4745f8ba3376980c45002523fea08

Contents?: true

Size: 295 Bytes

Versions: 6

Compression:

Stored size: 295 Bytes

Contents

# encoding: utf-8

require 'ffaker/lorem'

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

    extend ModuleUtils
    extend self

    def word
      BACON_WORDS.sample
    end

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

Version data entries

6 entries across 6 versions & 2 rubygems

Version Path
solidus_backend-1.0.0.pre3 vendor/bundle/gems/ffaker-1.32.1/lib/ffaker/bacon_ipsum.rb
solidus_backend-1.0.0.pre2 vendor/bundle/gems/ffaker-1.32.1/lib/ffaker/bacon_ipsum.rb
solidus_backend-1.0.0.pre vendor/bundle/gems/ffaker-1.32.1/lib/ffaker/bacon_ipsum.rb
ffaker-1.32.1 lib/ffaker/bacon_ipsum.rb
ffaker-1.32.0 lib/ffaker/bacon_ipsum.rb
ffaker-1.31.0 lib/ffaker/bacon_ipsum.rb