pope_francis_drumsrgr8forn8 0.0.2 → 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/pope_francis/version.rb +1 -1
- data/lib/pope_francis.rb +7 -3
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1803bd6539955a7c10f28bf79a048c65a8c6cdc3
|
4
|
+
data.tar.gz: 5263d0a470dd32e171a00cb27ad50092e8401e43
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9a320e220d62365b1f3646ad05c1db3ec5781a94740a444f61fc6fae6850a0dcb1482aacaab0078dafb1ebfe8132dcc120a73343d171a784e95e895a483cf95a
|
7
|
+
data.tar.gz: 9337bbd1ee38aa5714132b1514f936a145d7488f9ee21a042ba1719df07d003bbfbb01c96333a5aefb1e04808c22174cc3035f22ca4f098df241aca09390f75c
|
data/lib/pope_francis/version.rb
CHANGED
data/lib/pope_francis.rb
CHANGED
@@ -1,9 +1,7 @@
|
|
1
1
|
require "pope_francis/version"
|
2
2
|
|
3
3
|
module PopeFrancis
|
4
|
-
def
|
5
|
-
input = gets.chomp
|
6
|
-
|
4
|
+
def self.translate(input)
|
7
5
|
english_text = input.split
|
8
6
|
|
9
7
|
english_text.map! do |word|
|
@@ -12,5 +10,11 @@ module PopeFrancis
|
|
12
10
|
end
|
13
11
|
|
14
12
|
puts english_text.join(" ")
|
13
|
+
end
|
14
|
+
end
|
15
|
+
|
16
|
+
class String
|
17
|
+
def to_pig_latin
|
18
|
+
PopeFrancis.translate(self)
|
15
19
|
end
|
16
20
|
end
|