methodist 1.2.0 → 1.2.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/methodist/builder.rb +1 -0
- data/lib/methodist/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f42b963657c666566a87e2cd6a597aa18df2c97a74e394e395acfcf4972fa465
|
4
|
+
data.tar.gz: ed594821a5e380626a43a738c2fcb72d1c92597c8fd655555ee0e9624176b689
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 307d0e9d42368f81b741a590afb5fe358041eec38ca0f4ee0c38a61f9100d1ddafe3c8fa059068d16286a47ea263d19554d777cf13a73c37591c265eac558731
|
7
|
+
data.tar.gz: a28836d0f23724df4dc0e6374054b1281ec4cdeec2a7537e7fbb060e6615d4914e032edb6c0678314787f2a82b5050a645c2cda8b8045c7df972e3e1b14df22b
|
data/lib/methodist/builder.rb
CHANGED
@@ -66,6 +66,7 @@ class Methodist::Builder < Methodist::Pattern
|
|
66
66
|
set_proc_to_const(proc, attr_name) if proc
|
67
67
|
|
68
68
|
define_method("#{attr_name}=") do |val|
|
69
|
+
val = options[:prepare].call(val) if options[:prepare]
|
69
70
|
instance_variable_set("@#{attr_name}".to_sym, val)
|
70
71
|
return val if valid_attr?(attr_name)
|
71
72
|
instance_variable_set("@#{attr_name}".to_sym, nil)
|
data/lib/methodist/version.rb
CHANGED