Sha256: 4c5cab0d1e488ae10c2b34dd71c7b6576c2688d4d2e5ff1eaa0623de1f9a4175

Contents?: true

Size: 330 Bytes

Versions: 6

Compression:

Stored size: 330 Bytes

Contents

# frozen_string_literal: true

require 'ffaker/lorem'

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

    extend ModuleUtils
    extend self

    def word
      fetch_sample(HIPSTER_WORDS)
    end

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

Version data entries

6 entries across 6 versions & 1 rubygems

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