librails 0.0.8 → 0.0.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: c890f602347b27a6a2ecab1d66d26e8729985793
4
- data.tar.gz: c84b18986329428ca9253b5239af5aa9c7d8fe13
3
+ metadata.gz: 4353d673b25c199dd035f11a47cf60737117a24d
4
+ data.tar.gz: f32826e4d3f02ce3435f0b2e90d9c65a69f717ea
5
5
  SHA512:
6
- metadata.gz: 994052f719f7fbd9e48b75ba19fb43c6016ae8780f6c05f67b816507c17cca476525b94ad563626d0b8881864f55464e11f407fab6897de80be121bab04fcc46
7
- data.tar.gz: 6d4c2716c9a150f56af9afe31c5bf23dfd6ada0b57e935bd209e3d169d3a41315ec4e42da299a280108d5b1b47d5d518220ba33b10ee287b1d6be69ba2ce9e26
6
+ metadata.gz: 6530cec6c5732874d4983f5a67a1fa6c8c7d8e075095d2b42ab8df667b2a10f204c8e4ac0423f87f8b867a0e9666801af2c36a2b04bb945687d68c31140853b9
7
+ data.tar.gz: 5610ef030cc3aa9b1b43be2375fca192309d02c0bc6ed3da62c2d29fa4eeca7e28425c872115d30883fe33fc34b65901d67eb129f1bd03a5fc420cae8101dd0f
@@ -1,13 +1,15 @@
1
1
  # coding: utf-8
2
- class FormParam
3
- def initialize(id, label = nil, value = nil)
4
- # 基本はIDとlabelvalueは特別な値を紐付けたい場合にのみ使用する。
5
- @id = id
6
- @label = label
7
- if @label.nil?
8
- @label = @id
2
+ module Librails
3
+ class FormParam
4
+ def initialize(id, label = nil, value = nil)
5
+ # 基本はIDとlabel。valueは特別な値を紐付けたい場合にのみ使用する。
6
+ @id = id
7
+ @label = label
8
+ if @label.nil?
9
+ @label = @id
10
+ end
11
+ @value = value
9
12
  end
10
- @value = value
13
+ attr_accessor :id, :label, :value
11
14
  end
12
- attr_accessor :id, :label, :value
13
15
  end
@@ -1,3 +1,3 @@
1
1
  module Librails
2
- VERSION = "0.0.8"
2
+ VERSION = "0.0.9"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: librails
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.8
4
+ version: 0.0.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - src