HyakuninIssyu 0.3.0 → 0.3.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +12 -10
- data/lib/HyakuninIssyu/version.rb +1 -1
- 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: 7bf042c25359297101ac7411c5c0122a4ae83256
|
4
|
+
data.tar.gz: 2e0fff49fcbad45da695391518abe3b3fecc5e27
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 456f397c3fd53d522ec30a9b210e01ec90b7822bf1c2b5b6751ddbdf5847ad8decea9b55c8ff3e7dc66206fcbf6e0b1a610f0423adf138e32433d0db1979c856
|
7
|
+
data.tar.gz: 04f1b56a826b618c1cafc950d51fa5a6577e00d730ccc0ef1d16d86abdc5e47e2dd566296c2edfdf3fbed2c5a05486fc171951fb8ffb9614df1ef5815b3403f5
|
data/README.md
CHANGED
@@ -22,24 +22,26 @@ Or install it yourself as:
|
|
22
22
|
$ gem install HyakuninIssyu
|
23
23
|
|
24
24
|
## Usage
|
25
|
+
When retrieving the 64th poem (it's one of my favourite),
|
26
|
+
make the instance of HyakuninIssyu class with its poem id first.
|
27
|
+
|
28
|
+
data = HyakuninIssyu.new(64)
|
25
29
|
|
26
30
|
###Poem Info | 歌情報の取得
|
27
|
-
|
31
|
+
To retrieve the poem info,
|
28
32
|
|
29
|
-
poem
|
30
|
-
poem.
|
31
|
-
poem.
|
32
|
-
poem.
|
33
|
-
poem.last #=> "あらはれわたる瀬々の網代木"
|
33
|
+
data.poem.full #=> "朝ぼらけ 宇治の川霧 たえだえに あらはれわたる 瀬々の網代木"
|
34
|
+
data.poem.first #=> "朝ぼらけ宇治の川霧たえだえに"
|
35
|
+
data.poem.last #=> "あらはれわたる瀬々の網代木"
|
36
|
+
data.poem.comment #=> "「朝ぼらけ」は夜明けであたりがほのぼのと明るくなってくる頃..."
|
34
37
|
|
35
38
|
|
36
39
|
###Poet Info | 歌人情報の取得
|
37
40
|
To retrieve the poet info for the same poem,
|
38
41
|
|
39
|
-
poet
|
40
|
-
poet.
|
41
|
-
poet.
|
42
|
-
poet.info #=> "本名は藤原定頼(ふじわらの さだより)。平安時代中期の公家・歌人..."
|
42
|
+
data.poet.name #=> "権中納言定頼"
|
43
|
+
data.poet.period #=> "995-1045"
|
44
|
+
data.poet.info #=> "本名は藤原定頼(ふじわらの さだより)。平安時代中期の公家・歌人..."
|
43
45
|
|
44
46
|
|
45
47
|
## Contributing
|