ensenar 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/ensenar.rb +4 -5
- metadata +1 -1
data/lib/ensenar.rb
CHANGED
@@ -26,14 +26,13 @@ class Ensenar
|
|
26
26
|
end
|
27
27
|
end
|
28
28
|
if l == text.length
|
29
|
-
|
29
|
+
x = rand(@words.length)
|
30
|
+
y = rand(@words[x].length)
|
31
|
+
scope = @words[x][y]
|
32
|
+
text << @words[x][y]
|
30
33
|
else
|
31
34
|
next
|
32
35
|
end
|
33
36
|
end
|
34
|
-
if text.length < length
|
35
|
-
text << "... ummm..."
|
36
|
-
end
|
37
|
-
return text.join(" ")
|
38
37
|
end
|
39
38
|
end
|