Sha256: 62a79fe8950b3628ace17022c436f9f5bb1afebb011cc16ce2fdde556b129ec0

Contents?: true

Size: 299 Bytes

Versions: 6

Compression:

Stored size: 299 Bytes

Contents

# encoding: utf-8

require 'ffaker/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

6 entries across 6 versions & 1 rubygems

Version Path
ffaker-1.30.0 lib/ffaker/hipster_ipsum.rb
ffaker-1.25.0 lib/ffaker/hipster_ipsum.rb
ffaker-1.24.0 lib/ffaker/hipster_ipsum.rb
ffaker-1.23.0 lib/ffaker/hipster_ipsum.rb
ffaker-1.22.1 lib/ffaker/hipster_ipsum.rb
ffaker-1.22.0 lib/ffaker/hipster_ipsum.rb