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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 989de7cbc8d17399fc6233cdbdd35e76baf94c6e
4
- data.tar.gz: a850f711680fe5086853e2caa34fbbcdd0a2e6ba
3
+ metadata.gz: 1803bd6539955a7c10f28bf79a048c65a8c6cdc3
4
+ data.tar.gz: 5263d0a470dd32e171a00cb27ad50092e8401e43
5
5
  SHA512:
6
- metadata.gz: a7fb036c5d766681d7d263fd4b74c57ac5fa896e788a5c69e9fe0724824d041a784084242b2862978f80c8d453cea7a1e15e9aba5687aa5d554c3fa3a8f494ba
7
- data.tar.gz: e49a26cc59d26e40e4f0abaaa682a48cc99425b6e86ebb6d742161beecc524a9e7b2c14ff18f6c392f93c48456b8292c1fb29ffd195cb054c5a9d717aafdccc1
6
+ metadata.gz: 9a320e220d62365b1f3646ad05c1db3ec5781a94740a444f61fc6fae6850a0dcb1482aacaab0078dafb1ebfe8132dcc120a73343d171a784e95e895a483cf95a
7
+ data.tar.gz: 9337bbd1ee38aa5714132b1514f936a145d7488f9ee21a042ba1719df07d003bbfbb01c96333a5aefb1e04808c22174cc3035f22ca4f098df241aca09390f75c
@@ -1,3 +1,3 @@
1
1
  module PopeFrancis
2
- VERSION = "0.0.2"
2
+ VERSION = "0.0.3"
3
3
  end
data/lib/pope_francis.rb CHANGED
@@ -1,9 +1,7 @@
1
1
  require "pope_francis/version"
2
2
 
3
3
  module PopeFrancis
4
- def to_pig_latin
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
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pope_francis_drumsrgr8forn8
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nate West