Sha256: 04a68ab3bcca6890bcf7e57cfa942cb94887a7e043a42858f7975567031fafc7

Contents?: true

Size: 324 Bytes

Versions: 6

Compression:

Stored size: 324 Bytes

Contents

# frozen_string_literal: true

require 'ffaker/lorem'

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

    extend ModuleUtils
    extend self

    def word
      fetch_sample(BACON_WORDS)
    end

    def words(num = 3)
      fetch_sample(BACON_WORDS, count: num)
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
ffaker-2.17.0 lib/ffaker/bacon_ipsum.rb
ffaker-2.16.0 lib/ffaker/bacon_ipsum.rb
ffaker-2.15.0 lib/ffaker/bacon_ipsum.rb
ffaker-2.14.0 lib/ffaker/bacon_ipsum.rb
ffaker-2.13.0 lib/ffaker/bacon_ipsum.rb
ffaker-2.12.0 lib/ffaker/bacon_ipsum.rb