type_struct 0.7.0 → 0.7.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/type_struct/generator.rb +1 -2
- data/lib/type_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: 62411529ae4d443eb76c8e65ec081314decf3fc1
|
4
|
+
data.tar.gz: 18398c63d48e66b1f7cb92f88a2e8369e0c2e707
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e2de24f4d580ed09776828a16d5b66779eeffa4edd5a99efc2b18ca1e698e97fb7107175e9cb99d92f1da752abbfd1dd277e42adf1e674acb4db7c25aeb9f372
|
7
|
+
data.tar.gz: 9ecf7b2fddfabfb78b353b7f2999b4d7036aaefef259ee043bd683c994103c0028e9a983f2393b0cfe5320d7a47bcf2faa95645c3f488e5c80337685aa6a273e
|
@@ -37,13 +37,12 @@ class TypeStruct
|
|
37
37
|
else
|
38
38
|
type_struct = key.to_s.gsub(/e?s\z/, '').split('_').map(&:capitalize).join
|
39
39
|
parse(type_struct, value)
|
40
|
+
io.puts " #{key}: #{type_struct},"
|
40
41
|
end
|
41
42
|
when NilClass
|
42
43
|
io.puts " #{key}: Object,"
|
43
44
|
when TrueClass, FalseClass
|
44
45
|
io.puts " #{key}: TrueClass | FalseClass,"
|
45
|
-
when Fixnum
|
46
|
-
io.puts " #{key}: Integer"
|
47
46
|
else
|
48
47
|
io.puts " #{key}: #{value.class},"
|
49
48
|
end
|
data/lib/type_struct/version.rb
CHANGED