Skip to content

Commit

Permalink
Default split is fine
Browse files Browse the repository at this point in the history
  • Loading branch information
kerryb committed Jul 15, 2009
1 parent 45d5728 commit 4c69e84
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions 1.rb
Expand Up @@ -5,10 +5,8 @@
require 'spec'

module StringExtensions
REGEX_TO_SPLIT_ALONG_WHITESPACES = /\s+/

def phrases(number)
strings = split(REGEX_TO_SPLIT_ALONG_WHITESPACES)
strings = split
all_strings = single_double_triple_words(strings)
all_strings[0, number].map {|s| "'#{s}'"}.join(', ')
end
Expand Down

0 comments on commit 4c69e84

Please sign in to comment.