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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: ca4e09d06d53259b6bef4e6e6b64ecb26264144c
4
- data.tar.gz: b98149feb31fbdb5e951064079a7535534862703
3
+ metadata.gz: 9fa8a0763bc38a73c08b075a2266465cde4032da
4
+ data.tar.gz: 86db85f965311e0ef6486bd0698ea54b6cda7267
5
5
  SHA512:
6
- metadata.gz: 4ca4c8751f6133fef914c67fa4167a7deef268f11585d7d46e5012b1bbd952e2475f8759224fa96c710a99ea7fd8d0b44ece83dd956550deeef31275fe2a1fb2
7
- data.tar.gz: 25b6ca5e2392d429b4c485be3791601537594e66a8edc55b2aa129bf04d8fff3ee7e658394b821fe2ee4fb9e593e8ae7fe84aed8086ea0fa1c9e60a6a2fc39cc
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
- module HyakuninIssyu
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
- module HyakuninIssyu
2
- VERSION = "0.2.1"
1
+ class HyakuninIssyu
2
+ VERSION = "0.3.0"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: HyakuninIssyu
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.1
4
+ version: 0.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - tomomichi