# \[ANN\] ListBrowser 0.1.0 released: Browse tree structures!

**URL:** <https://www.ruby-forum.com/t/ann-listbrowser-0-1-0-released-browse-tree-structures/181684>\
**Category:** Ruby\
**Created:** [January 16, 2010, 12:55am UTC](https://www.ruby-forum.com/t/ann-listbrowser-0-1-0-released-browse-tree-structures/181684 "2010-01-16T00:55:52Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![trevoke](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/t/ee7513/32.png) [@trevoke](https://www.ruby-forum.com/u/trevoke)\
**Post date:** [January 16, 2010, 12:55am UTC](https://www.ruby-forum.com/t/ann-listbrowser-0-1-0-released-browse-tree-structures/181684/1 "2010-01-16T00:55:52Z")

</div>

~~~~ListBrowser README~~~~

I was working on a parser for a very specific tree structure, and was  
frustrated  
that there wasn’t a simple way to parse it in irb. “What??”, I thought.  
“I have  
to use my brain?! God forbid!”.  
So I set to using my brain a little more to create this tool. It’s not  
much,  
but maybe it’ll make someone’s life a little easier.

It can be used in irb, and really should be used there - when you call  
it on  
a tree structure, you’ll get a menu with a list of choices on how you  
want to  
go through whatever structure you gave it.

In my particular, special case, I would do something like this:

require ‘sgf\_parser’ # For my tree structure  
require ‘list\_browser’ # For this.

tree = SgfParser::Tree.new :filename =\> “kogo.sgf”

ListBrowser.new tree.root, ‘parent’, ‘children’, ‘properties’

# And follow the menu!

In my particular case, I would not need to enter those strings, as they  
just happen to be the names I chose for my tree structure, but they  
should  
serve as a good enough example!

---

<div class="post-metadata">

**Author:** ![trevoke](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/t/ee7513/32.png) [@trevoke](https://www.ruby-forum.com/u/trevoke)\
**Post date:** [January 16, 2010, 12:59am UTC](https://www.ruby-forum.com/t/ann-listbrowser-0-1-0-released-browse-tree-structures/181684/2 "2010-01-16T00:59:46Z")

</div>

Aldric G. wrote:

> ~~~~ListBrowser README~~~~
> 
> I was working on a parser for a very specific tree structure, and was  
> frustrated  
> that there wasn’t a simple way to parse it in irb. “What??”, I thought.  
> “I have  
> to use my brain?! God forbid!”.

Right. As I was saying…  
If you have gemcutter installed, just do:  
gem install ListBrowser

And you’re set!
