RubyGems
npm
Organizations
Log in
Sign up
RubyGems
attr_plus
Versions diffs
0.2.1 → 0.2.2
attr_plus 0.2.1 → 0.2.2
Sign up to get
free
protection for your applications and to get access to all the features.
Files changed (2)
hide
show
data/lib/attr_plus/class.rb
+1
-1
metadata
+2
-2
data/lib/attr_plus/class.rb
CHANGED
Viewed
@@ -210,7 +210,7 @@ class Class
210
210
new_attrs.each do |key, value|
211
211
result = self.send(key)
212
212
if result
213
-
new_attrs[key] = result
213
+
new_attrs[key] =
(
result
.dup rescue result)
214
214
end # else leave as default
215
215
end
216
216
metadata
CHANGED
Viewed
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
segments:
6
6
- 0
7
7
- 2
8
-
-
1
9
-
version: 0.2.
1
8
+
-
2
9
+
version: 0.2.
2
10
10
platform: ruby
11
11
authors:
12
12
- Joshua Hawxwell