Skip to content

Commit

Permalink
Finishing up the switch from returning to tap
Browse files Browse the repository at this point in the history
  • Loading branch information
stympy committed Oct 15, 2010
1 parent 412dc16 commit 385466c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
1 change: 0 additions & 1 deletion lib/faker.rb
Expand Up @@ -9,7 +9,6 @@
require 'faker/version'

require 'extensions/array'
#require 'extensions/object'

module Faker
def self.numerify(number_string)
Expand Down
4 changes: 2 additions & 2 deletions lib/faker/lorem.rb
Expand Up @@ -12,7 +12,7 @@ def self.sentence(word_count = 4)
end

def self.sentences(sentence_count = 3)
tap do |sentences|
[].tap do |sentences|
1.upto(sentence_count) do
sentences << sentence
end
Expand All @@ -24,7 +24,7 @@ def self.paragraph(sentence_count = 3)
end

def self.paragraphs(paragraph_count = 3)
tap do |paragraphs|
[].tap do |paragraphs|
1.upto(paragraph_count) do
paragraphs << paragraph
end
Expand Down

0 comments on commit 385466c

Please sign in to comment.