serbea 0.3.4 → 0.3.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/serbea/helpers.rb +2 -2
- data/lib/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: 3aedaea6776741f8b501ad554019405c093c28947b810d44a1647424206b6cd8
|
4
|
+
data.tar.gz: 95b6936d84b60f31cacccde7b4213623bb03789d97fc9b07afa0dc2e76e1d27b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bd51862c6db8dc1bac37d6dded1e3f08d8f7cc9e8787011c4eddb44cc62799df80fb1fb16aafcab7a00f696b1fcd57f2872bb6dfc12a5104b3b34c2948d34955
|
7
|
+
data.tar.gz: f45b665cb6b684892ce792c91b1f14f59f7af33364875eddc7a4b0eb34f2b8e771cce1d1b0ad99aee06fc49dc3f1d6c8a2176118fc0685dde5d3892ce927d93b
|
data/lib/serbea/helpers.rb
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
module Serbea
|
2
2
|
module Helpers
|
3
3
|
def self.included(mod)
|
4
|
-
Serbea::Pipeline.deny_value_method %i(escape h prepend append map
|
4
|
+
Serbea::Pipeline.deny_value_method %i(escape h prepend append map assign_to)
|
5
5
|
end
|
6
6
|
|
7
7
|
def capture(obj=nil)
|
@@ -38,7 +38,7 @@ module Serbea
|
|
38
38
|
input.map(&block)
|
39
39
|
end
|
40
40
|
|
41
|
-
def
|
41
|
+
def assign_to(input, varname, preserve: false)
|
42
42
|
self.instance_variable_set("@#{varname}", input)
|
43
43
|
preserve ? input : nil
|
44
44
|
end
|
data/lib/version.rb
CHANGED