yifu 0.0.1 → 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. data/lib/yifu/translator.rb +14 -0
  2. metadata +3 -2
@@ -0,0 +1,14 @@
1
+ class Yifu::Translator
2
+ def initialize(language)
3
+ @language = language
4
+ end
5
+
6
+ def hi
7
+ case @language
8
+ when :spanish
9
+ "hoello mundo"
10
+ else
11
+ "hello world"
12
+ end
13
+ end
14
+ end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: yifu
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -11,7 +11,7 @@ bindir: bin
11
11
  cert_chain: []
12
12
  date: 2013-04-06 00:00:00.000000000 Z
13
13
  dependencies: []
14
- description: A simple hello world gem
14
+ description: add translator files
15
15
  email: yvesfu@gmail.com
16
16
  executables:
17
17
  - yifu
@@ -19,6 +19,7 @@ extensions: []
19
19
  extra_rdoc_files: []
20
20
  files:
21
21
  - lib/yifu.rb
22
+ - lib/yifu/translator.rb
22
23
  - bin/yifu
23
24
  homepage: http://rubygems.org/gems/yifu
24
25
  licenses: []