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.6.6 lib/branston/lib/faker_extras.rb
branston-0.6.5 lib/branston/lib/faker_extras.rb
branston-0.6.4 lib/branston/lib/faker_extras.rb
branston-0.6.3 lib/branston/lib/faker_extras.rb
branston-0.6.2 lib/branston/lib/faker_extras.rb
branston-0.6.1 lib/branston/lib/faker_extras.rb
branston-0.6.0 lib/branston/lib/faker_extras.rb
branston-0.5.2 lib/branston/lib/faker_extras.rb
branston-0.5.1 lib/branston/lib/faker_extras.rb
branston-0.5.0 lib/branston/lib/faker_extras.rb
branston-0.4.6 lib/branston/lib/faker_extras.rb
branston-0.4.5 lib/branston/lib/faker_extras.rb
branston-0.4.4 lib/branston/lib/faker_extras.rb
branston-0.4.3 lib/branston/lib/faker_extras.rb
branston-0.4.2 lib/branston/lib/faker_extras.rb
branston-0.4.1 lib/branston/lib/faker_extras.rb
branston-0.4.0 lib/branston/lib/faker_extras.rb
branston-0.3.6 lib/branston/lib/faker_extras.rb
branston-0.3.4 lib/branston/lib/faker_extras.rb
branston-0.3.3 lib/branston/lib/faker_extras.rb