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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: a9f1a3241e46353cfd9040437c6922494aeb95f7
4
- data.tar.gz: 37c5d3a05b4e8d94c61f324872787e32bda72889
3
+ metadata.gz: 9e58bdb362d9c46a43ff1ddf194ba0208f9fd002
4
+ data.tar.gz: 2d4a74628040029118bf154ebdd7b9feae65deb0
5
5
  SHA512:
6
- metadata.gz: dc6e741a80a217054eef97c7293275ed9bc26637fcef36f56a76fef5b57a4464bf8bac3de2f2c577b9fbdcc290755a4f5dc873fb50b705b2b0eb7566cfddfab0
7
- data.tar.gz: c9890204f6e2268ce5ce2396be1b512939360a19b11e85bdbdf18d89f882f0d1a74b72e32abee48aa4ef226702a7660cc27d8be9e3576cda5edb3fbacc8fdae0
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
- method_result = public_send(m)
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
 
@@ -1,3 +1,3 @@
1
1
  module StaticStruct
2
- VERSION = "0.1.3"
2
+ VERSION = "0.1.4"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: static-struct
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.3
4
+ version: 0.1.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mezuka LLC