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

2 comments:

Flores Online said...
This comment has been removed by a blog administrator.
Gadwin Co Inger said...

Hi, Great.. Tutorial is just awesome..It is really helpful for a newbie like me.. I am a regular follower of your blog. Really very informative post you shared here. Kindly keep blogging. If anyone wants to become a Front end developer learn from Javascript Training in Chennai . or learn thru Javascript Training in Chennai. Nowadays JavaScript has tons of job opportunities on various vertical industry. JavaScript Training in Chennai