Sha256: 922d2c41f40a01ee3606a187fe4ca08ca6938c139f6d16f1d1a7afeaca2c8140

Contents?: true

Size: 546 Bytes

Versions: 21

Compression:

Stored size: 546 Bytes

Contents

module Faker
  class Stories
    class << self
      def single_precondition
        r = Faker::Lorem.sentence
        out = ""
        r = r.split
        r[2] = '"' + r[2] + '"'
        r.collect { |s| out += s + " " }
        return out
      end
      
      def double_precondition
        r = Faker::Lorem.sentence.chop + " " + Faker::Lorem.sentence 
        out = ""
        r = r.split
        r[2] = '"' + r[2] + '"'
        r[5] = '"' + r[5] + '"'
        r.collect { |s| out += s + " " }
        return out
      end
    end
  end
end

Version data entries

21 entries across 21 versions & 1 rubygems

Version Path
branston-0.3.2 lib/branston/lib/faker_extras.rb