markly 0.11.0 → 0.12.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- checksums.yaml.gz.sig +0 -0
- data/lib/markly/node.rb +7 -1
- data/lib/markly/version.rb +1 -1
- data.tar.gz.sig +0 -0
- metadata +1 -1
- metadata.gz.sig +0 -0
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 3cd94abddc41f15067801a6e539bc8f9e9243625ad4896c75a226b8d9001fbd8
|
|
4
|
+
data.tar.gz: 24eef0d17ac2f066e68689fa6a1dfcae0ac106d5219d5a0df7d41502333a39d2
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: c74742176f3f3514e96af7f78d0128ae14ac1b116e3aaccfee37eea6441de208347d2a370509c71782d15147d0414e7940d7e839aa5967561e7df53225eeada0
|
|
7
|
+
data.tar.gz: 05ee9e27830fc92fa13c7cc909e0a1fba8221c3b563bcb0c31ec0ece271673cdc402293e382464af529b4e110e46e0a440888d19d9d907f13b299ad88c23ea73
|
checksums.yaml.gz.sig
CHANGED
|
Binary file
|
data/lib/markly/node.rb
CHANGED
|
@@ -13,7 +13,13 @@ module Markly
|
|
|
13
13
|
class Node
|
|
14
14
|
include Enumerable
|
|
15
15
|
include Inspect
|
|
16
|
-
|
|
16
|
+
|
|
17
|
+
# Duplicate the current node and all children.
|
|
18
|
+
def dup
|
|
19
|
+
# This is a bit crazy, but it's the best I can come up with right now:
|
|
20
|
+
Markly.parse(self.to_markdown)
|
|
21
|
+
end
|
|
22
|
+
|
|
17
23
|
# Public: An iterator that "walks the tree," descending into children recursively.
|
|
18
24
|
#
|
|
19
25
|
# blk - A {Proc} representing the action to take for each child
|
data/lib/markly/version.rb
CHANGED
data.tar.gz.sig
CHANGED
|
Binary file
|
metadata
CHANGED
metadata.gz.sig
CHANGED
|
Binary file
|