object_tree 1.1.1 → 1.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/object_tree.rb +2 -1
- data/lib/object_tree/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: d63d7ab4059465f15e942407cd5adbdf55fff2b0
|
4
|
+
data.tar.gz: 6a4c4d2b489c0c6f3fb59b9ac39f334763205d59
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0a952724005b940a16259d80231a5ba92c7a8feb9d4a17ee2b2cb92e936b21a013c53237ff8b7365ac7bdd7fc9f0e166aab6a264efa46108942b3457c59b030e
|
7
|
+
data.tar.gz: 56607c82c76f2566d0f42338c62a2ce9a6d533ddca54ab4e5eed14a29d58ec5d0531f1df43985e38c9a4b89074aa640db8b09e2106a17ddff267bd735e487ba5
|
data/lib/object_tree.rb
CHANGED
@@ -14,7 +14,7 @@ class ObjectTree
|
|
14
14
|
end
|
15
15
|
|
16
16
|
def initialize(klass)
|
17
|
-
@tree =
|
17
|
+
@tree = {}
|
18
18
|
@queue = []
|
19
19
|
parse(klass)
|
20
20
|
end
|
@@ -41,6 +41,7 @@ class ObjectTree
|
|
41
41
|
|
42
42
|
def parse(klass, space = '', path: [])
|
43
43
|
path << klass
|
44
|
+
@tree[path.join('/')] = []
|
44
45
|
modules = get_modules(klass, path.reverse)
|
45
46
|
@queue << output_node(klass)
|
46
47
|
|
data/lib/object_tree/version.rb
CHANGED