trivet 1.3 → 1.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +11 -3
- data/lib/trivet.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 263f4467c73c785dc2cf6ed719853b48074b9342346e8e55b024f198210ac404
|
4
|
+
data.tar.gz: 562a15f15e48250768261e488b550a1642cbbc008a3cca6b041fa768b59c3e20
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d5c92d225e545824c0c15735d282c64d6f874e8d0a10d857aeeb22e8d61ba71964cdd053d21789b8315e72568560bca8a4a94cea267ea2f0a302a1945c200ad0
|
7
|
+
data.tar.gz: eacc18b19851d20e539da922ed70afc1241af40ab171c3f0f8126c9d8ca01a357bd4c85524c25b64d1aa1a8fc43df671516f4cd5815d5484f46c57589730f24f
|
data/README.md
CHANGED
@@ -25,10 +25,10 @@ Trivet is a generic class for organizing a hierarchy.
|
|
25
25
|
19.
|
26
26
|
20. puts food.to_tree
|
27
27
|
|
28
|
-
Line
|
29
|
-
Lines
|
28
|
+
Line 1 creates a `Trivet::Node` object and assigns it the id "food".
|
29
|
+
Lines 3 to 18 use the `node()` method to create child nodes.
|
30
30
|
|
31
|
-
Line
|
31
|
+
Line 20 uses the `to_tree()` method to display the tree as text, which
|
32
32
|
looks like this:
|
33
33
|
|
34
34
|
food
|
@@ -109,5 +109,13 @@ mike@idocs.com
|
|
109
109
|
Renamed have_child? to have_object?. Renamed remove_child() to remove_object().
|
110
110
|
</td>
|
111
111
|
</tr>
|
112
|
+
|
113
|
+
<tr>
|
114
|
+
<td>1.4</td>
|
115
|
+
<td>January 4, 2021</td>
|
116
|
+
<td>
|
117
|
+
Fixed documentation. No changes to code.
|
118
|
+
</td>
|
119
|
+
</tr>
|
112
120
|
|
113
121
|
</table>
|
data/lib/trivet.rb
CHANGED