namasthe 0.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 0095d4593436cea0fc1a9f72dbc81b62495f1bf8
4
+ data.tar.gz: 93af49a9b9e17465d0197defdead8494192dda78
5
+ SHA512:
6
+ metadata.gz: 08141ab2dc7889015701f8cbe1300f44969c173a439d1bdd5167144ec49e7e205a5ead4b4e88efb72829a3e1c6b105d85b8823b38bc3f370534ed364c72f9779
7
+ data.tar.gz: f687f2e78682f02b327ff3e7a47a959c19b43ec4ee4a8f78a751280045eff01b8a827b6615f3e2a71606d0f51550e576f37b989a14c99b13ff1abbf546ce73e7
@@ -0,0 +1,16 @@
1
+ class Namasthe::Translator
2
+ def initialize language
3
+ @language = language
4
+ end
5
+
6
+ def hi
7
+ case @language
8
+ when "spanish"
9
+ "hola mundo"
10
+ when "english"
11
+ "hello world"
12
+ else
13
+ "namasthe"
14
+ end
15
+ end
16
+ end
data/lib/namasthe.rb ADDED
@@ -0,0 +1,8 @@
1
+ class Namasthe
2
+ def self.hi(language="indian")
3
+ translator = Translator.new(language)
4
+ translator.hi
5
+ end
6
+ end
7
+
8
+ require 'namasthe/translator'
metadata ADDED
@@ -0,0 +1,45 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: namasthe
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.1
5
+ platform: ruby
6
+ authors:
7
+ - Goutham Pilla
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2017-06-21 00:00:00.000000000 Z
12
+ dependencies: []
13
+ description: A simple Indian hello world gem
14
+ email: goutham2027@gmail.com
15
+ executables: []
16
+ extensions: []
17
+ extra_rdoc_files: []
18
+ files:
19
+ - lib/namasthe.rb
20
+ - lib/namasthe/translator.rb
21
+ homepage: http://rubygems.org/gems/namasthe
22
+ licenses:
23
+ - MIT
24
+ metadata: {}
25
+ post_install_message:
26
+ rdoc_options: []
27
+ require_paths:
28
+ - lib
29
+ required_ruby_version: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - ">="
32
+ - !ruby/object:Gem::Version
33
+ version: '0'
34
+ required_rubygems_version: !ruby/object:Gem::Requirement
35
+ requirements:
36
+ - - ">="
37
+ - !ruby/object:Gem::Version
38
+ version: '0'
39
+ requirements: []
40
+ rubyforge_project:
41
+ rubygems_version: 2.6.4
42
+ signing_key:
43
+ specification_version: 4
44
+ summary: Namasthe!
45
+ test_files: []