Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

ListBrowser

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ListBrowser

  • 0.1.0
  • Rubygems
  • Socket score

Version published
Maintainers
1
Created
Source

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!

FAQs

Package last updated on 15 Jan 2010

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc