frosty_meadow 0.0.4 → 0.0.5
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/frosty_meadow.rb +3 -3
- metadata +1 -1
data/lib/frosty_meadow.rb
CHANGED
@@ -9,11 +9,11 @@ class FrostyMeadow
|
|
9
9
|
|
10
10
|
result = "#{adjectives[rand(adjectives.length)]} #{nouns[rand(nouns.length)]}"
|
11
11
|
|
12
|
-
return (params[:
|
12
|
+
return (params[:separator] && self.seperate(result, params[:separator])) || result
|
13
13
|
end
|
14
14
|
|
15
|
-
def self.
|
16
|
-
result.gsub(/ +/,
|
15
|
+
def self.seperate result, separator
|
16
|
+
result.gsub(/ +/, separator)
|
17
17
|
end
|
18
18
|
|
19
19
|
def self.get_words params = {}
|