hola_a1539kh 0.0.4

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 566a987e2c6465c572dfecd17e5c813860594a20
4
+ data.tar.gz: 9437428d3ed28eb6997123255254717484194405
5
+ SHA512:
6
+ metadata.gz: 35ca6b13d2a0d26d4665db7f63dd57edbb89745958bb4df88a490c67aff821eb26faba84e742b29feab5e705cefaffbad0f16f2f08e7846f3ece44073eb5454b
7
+ data.tar.gz: a5964934089d7465dd727008cc7f6f3e878ed0e550513a85d1b194c30e1a0ab4ffaa5573be0812952b8f3daca78db12635a143e76950f219d2cdb7d5749f9b91
@@ -0,0 +1,14 @@
1
+ class HolaA1539kh::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
@@ -0,0 +1,8 @@
1
+ class HolaA1539kh
2
+ def self.hi(language = "english")
3
+ translator = Translator.new(language)
4
+ translator.hi
5
+ end
6
+ end
7
+
8
+ require 'hola_a1539kh/translator'
metadata ADDED
@@ -0,0 +1,46 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: hola_a1539kh
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.4
5
+ platform: ruby
6
+ authors:
7
+ - HARA Koji
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2015-06-27 00:00:00.000000000 Z
12
+ dependencies: []
13
+ description: A simple hello world gem
14
+ email: a1539kh@aiit.ac.jp
15
+ executables: []
16
+ extensions: []
17
+ extra_rdoc_files: []
18
+ files:
19
+ - lib/hola_a1539kh.rb
20
+ - lib/hola_a1539kh/translator.rb
21
+ homepage: http://rubygems.org/gems/hola_a1539kh
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.2.2
42
+ signing_key:
43
+ specification_version: 4
44
+ summary: Hola!
45
+ test_files: []
46
+ has_rdoc: