static-struct 0.1.3 → 0.1.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/static_struct/structure.rb +1 -6
- data/lib/static_struct/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9e58bdb362d9c46a43ff1ddf194ba0208f9fd002
|
4
|
+
data.tar.gz: 2d4a74628040029118bf154ebdd7b9feae65deb0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3d0e87d286cb8d5a0f2a4aa21579c27600729ea04453ee3c57247aacf4ac5de82e85ed9b363a0dcd64e5d28d5f1ed865224bcef4c0a203f8c09df41c72ff6b2a
|
7
|
+
data.tar.gz: 5ca9c3d0bcdf17fc107ef0a434a8e33b0e2e71e9e0adbbf7cef7556be180a089aba0bcef4b34fdd0e347e5d12c55226623ecc173dbc8c4adad3e7a5fe0dbaa8e
|
@@ -27,12 +27,7 @@ module StaticStruct
|
|
27
27
|
|
28
28
|
def each
|
29
29
|
static_methods.each do |m|
|
30
|
-
|
31
|
-
if method_result.is_a?(self.class)
|
32
|
-
yield m, method_result.enum_for(:each)
|
33
|
-
else
|
34
|
-
yield m, public_send(m)
|
35
|
-
end
|
30
|
+
yield m, public_send(m)
|
36
31
|
end
|
37
32
|
end
|
38
33
|
|