Monday, April 14, 2008

Ruby Syntax for the Javascript Fantasts

What?

A gem that gives you the Mash object which mimics the javascript object notation (with some powerful additions). 

Why?

It's a really easy and quick way to build and access deeply nested structured, e.g.

mash = Mash.new
mash.author!.name = "Michael Bleigh"
mash.author.info!.url = "http://www.mbleigh.com/"
How?

Check out the blogpost at intridea, alternatively go straight to the gem


sudo gem install mash

or straight to the source


git clone git://github.com/mbleigh/mash.git

1 comment:

Anonymous said...
This comment has been removed by a blog administrator.