hola_eponce19 0.0.0 → 0.0.1

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: dbb96895b2ef29f2a34f8d416dc0a6033ce93bf9
4
- data.tar.gz: 29dcacfbc89e55ad3e45b2a71564a6c529f3f492
3
+ metadata.gz: 674a5efc6721ccee854fb8a01dcfc1a19cc3a5dd
4
+ data.tar.gz: 1ff9802e6f9f8d58e395e68dc8bab3541895ee8c
5
5
  SHA512:
6
- metadata.gz: 02472c0a67df47f153bc5f60108187a6fe824c61f54cd37bb1576ad3dfc79ef6fcfa42f96a942c37b2749401c62906e9be69bc3f7853b7998951ecf00770161b
7
- data.tar.gz: f0540c93c609c1cddfe56b63a7c573f2ce0b9a23d042c8c986eb2f3168a8f97f43b7ce4077b63486406f720d35a7bbf2635cc889d2ac1bfbc7c78b5e488b6b02
6
+ metadata.gz: b18c28f191a4894f46bf9139d79eec13e5f0079634c8a902f5ce687f2a1d8f7b73f79212edcf2eb0a6a14218871ed5ca61b823c7b3aac9b1d598b606be3a879c
7
+ data.tar.gz: 9406b3f991aea87c01ca431d1f9c332a4b5d73c220f1dca3a7f3cfa22fe914a6ec8443f384e3d6081ac12cdea76672938bf95b1ff4ab28bacb56220ca227f83b
@@ -0,0 +1,14 @@
1
+ class HolaEponce19::Translator
2
+ def initialize(language)
3
+ @language = language
4
+ end
5
+
6
+ def hi
7
+ case @language
8
+ when "spanish"
9
+ "hola mundo"
10
+ else
11
+ "hello world"
12
+ end
13
+ end
14
+ end
data/lib/hola_eponce19.rb CHANGED
@@ -1,5 +1,11 @@
1
1
  class HolaEponce19
2
- def self.hi
3
- puts "Hello world!"
4
- end
2
+
3
+ def self.hi(language = "english")
4
+ translator = Translator.new(language)
5
+ translator.hi
6
+ end
7
+
5
8
  end
9
+
10
+
11
+ require 'HolaEponce19/translator'
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hola_eponce19
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.0
4
+ version: 0.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Evelin Ponce
@@ -16,6 +16,7 @@ executables: []
16
16
  extensions: []
17
17
  extra_rdoc_files: []
18
18
  files:
19
+ - lib/holaEponce19/translator.rb
19
20
  - lib/hola_eponce19.rb
20
21
  homepage: http://rubygems.org/gems/hola_eponce19
21
22
  licenses: