HyakuninIssyu 0.2.1 → 0.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/HyakuninIssyu.rb +14 -1
- data/lib/HyakuninIssyu/version.rb +2 -2
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9fa8a0763bc38a73c08b075a2266465cde4032da
|
4
|
+
data.tar.gz: 86db85f965311e0ef6486bd0698ea54b6cda7267
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7bcc91e45b63b6d2b53f4a9fa56c41bebe8d5cb7a9eedf9ce5651cc130c172c06ff509342183341c7ba579e46cba44bdcc05f69c9e0ab0baec0f00fdbdc195c4
|
7
|
+
data.tar.gz: b99303f0fbb01ddee735a998848d44e34031dd4dbae9815f01b522420410a93f73c6cb335e1f439f83188493e281a398ce3e316f1ed7ce46c1302620547b6cd8
|
data/lib/HyakuninIssyu.rb
CHANGED
@@ -1,7 +1,20 @@
|
|
1
1
|
require "HyakuninIssyu/version"
|
2
2
|
require "yaml"
|
3
3
|
|
4
|
-
|
4
|
+
class HyakuninIssyu
|
5
|
+
def initialize(id)
|
6
|
+
@poem = Poem.new(id)
|
7
|
+
@poet = Poet.new(id)
|
8
|
+
end
|
9
|
+
|
10
|
+
def poem
|
11
|
+
@poem
|
12
|
+
end
|
13
|
+
|
14
|
+
def poet
|
15
|
+
@poet
|
16
|
+
end
|
17
|
+
|
5
18
|
class Poem
|
6
19
|
def initialize(id)
|
7
20
|
poems = YAML.load_file(File.expand_path(File.join('..', 'data', 'poems.yml'), __FILE__))
|
@@ -1,3 +1,3 @@
|
|
1
|
-
|
2
|
-
VERSION = "0.
|
1
|
+
class HyakuninIssyu
|
2
|
+
VERSION = "0.3.0"
|
3
3
|
end
|