pr 0.0.5 → 0.0.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- checksums.yaml.gz.sig +0 -0
- data.tar.gz.sig +0 -0
- data/lib/pr/define_field.rb +3 -3
- data/lib/pr/version.rb +1 -1
- metadata +1 -1
- metadata.gz.sig +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ef65bd2a1f97ff1d16a5d1cf329d5086482cc620
|
4
|
+
data.tar.gz: d54d0076a15492bd113b6a60ce6a285da1ce4b3e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8d54765159a833fcd3fb92be7c604c076e7a694deed9804662e96c4306820901eca82d692515748c048302b54b1c803be08d049e8e829e0ac035e5d14710e792
|
7
|
+
data.tar.gz: 07d87ca69addcf02aeafd75f8a58a7f7c8a476fc41f478060200f08bfb66897f308ea9e4b8055f0752e44f4c04604e924de251d77b4a0f36c9d88b0eea5bda91
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
data.tar.gz.sig
CHANGED
Binary file
|
data/lib/pr/define_field.rb
CHANGED
@@ -15,7 +15,7 @@ class DefineField
|
|
15
15
|
|
16
16
|
define_field klass, actual_field, var_name, field_setter
|
17
17
|
define_reader klass, field_name, actual_field
|
18
|
-
define_setter klass, var_name, field_setter, field
|
18
|
+
define_setter klass, var_name, field_setter, field, options
|
19
19
|
end
|
20
20
|
|
21
21
|
private
|
@@ -39,10 +39,10 @@ class DefineField
|
|
39
39
|
end
|
40
40
|
end
|
41
41
|
|
42
|
-
def define_setter klass, var_name, field_setter, field
|
42
|
+
def define_setter klass, var_name, field_setter, field, options
|
43
43
|
klass.class_eval do
|
44
44
|
define_method(field_setter) do |value|
|
45
|
-
instance_variable_set var_name, field.new(
|
45
|
+
instance_variable_set var_name, field.new(value,options)
|
46
46
|
end
|
47
47
|
end
|
48
48
|
end
|
data/lib/pr/version.rb
CHANGED
metadata
CHANGED
metadata.gz.sig
CHANGED
Binary file
|