tree_support 0.1.1 → 0.1.2

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 0d28623ade02c2a1b17f182d2dd1dad279fb2198
4
- data.tar.gz: 9bbe41d05353fb16b9f06f3c854de3b2944396c4
3
+ metadata.gz: 1d42846d7b222401aa8cb748f56c6cc2844cb68c
4
+ data.tar.gz: 49e88e6f20cd13b54d984ea006c600dccac477a7
5
5
  SHA512:
6
- metadata.gz: 7af75eb4d2401b905a67f25b321b0128a6749d2548018eac472c24cb70daeebce7c9936bd9ee10018078d507d7e5696058e55f9474f29869257bf3aa2f769676
7
- data.tar.gz: 0afa8c12ae857aaf5e24fc04cfee7bd49730a5076fd18a4c3ad2c49abb189e654ea55147235c03b0ec72198d21100168b51c2eefe43d8f9d8cfd7a4dda65df8e
6
+ metadata.gz: 48b2f24e9a380597643745b27874649fcd68537d92797ae028b9020313611761eda6ed7589a44f7b5cb5a47f88de00b91d03c1bf56d9df99bf0a3de6785a93da
7
+ data.tar.gz: be086b2d96e0135aae4f0eb290b4a2c435626c0eddd686ea6ca57337451631d8b0ab474807ce18646844cb448504fbfa2762cb461571fe2989bd38afc20b386c
data/README.org CHANGED
@@ -19,7 +19,7 @@ $ bundle install
19
19
 
20
20
  ** How to use in one line
21
21
 
22
- Just pass the object that has the parent, children method to TreeSupport.tree
22
+ Just pass the object that has the parent, children method to =TreeSupport.tree=
23
23
 
24
24
  #+BEGIN_SRC ruby
25
25
  require "tree_support"
@@ -128,7 +128,7 @@ puts TreeSupport.tree(root)
128
128
 
129
129
  *** Troublesome writing TreeSupport.tree
130
130
 
131
- Include TreeSupport::Stringify
131
+ =include TreeSupport::Stringify=
132
132
 
133
133
  #+BEGIN_SRC ruby
134
134
  Node.include(TreeSupport::Stringify)
@@ -189,16 +189,17 @@ puts TreeSupport.tree(root) { |node| node.object_id }
189
189
 
190
190
  The following methods become available in include of =TreeSupport::Treeable=
191
191
 
192
+ - root
193
+ - root?
194
+ - leaf?
192
195
  - each
193
196
  - each_node
194
197
  - descendants
195
198
  - self_and_descendants
196
199
  - ancestors
197
- - root
200
+ - self_and_ancestors
198
201
  - siblings
199
202
  - self_and_siblings
200
- - root?
201
- - leaf?
202
203
 
203
204
  *** How to convert to Gviz object?
204
205
 
@@ -1,3 +1,3 @@
1
1
  module TreeSupport
2
- VERSION = "0.1.1"
2
+ VERSION = "0.1.2"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tree_support
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - akicho8