Add something new to Virb:

Virb

Are you sure you want to delete that?

or Cancel

 

Pope

29 years old

Male

Text(31)

Feb 10, 2009

Useless Ruby Tricks: DATA and __END__

So maybe not totally useless certainly fun. Normally, ruby scripts are finished when you reach the end of a file; however, this is not always the case. You can end your script sooner by using the __END__ keyword in your script. Once added, everything you type after …

Post a comment

Jun 9, 2008

Converting ERB to HAML snippet

I'm playing around with merb so I'm using merb-gen to create some basic scaffolding; however, I'm not using ERB, the default rendering engine, I want to use haml


Haml comes with a script, html2haml, which can take HTML with ERB and convert it nicely to haml. Seeing as …

Post a comment

May 17, 2008

Code Reviews - Inherit in Git

Code Reviews are common in software development. One programmer reviews another's code to find potential issues or to see if the developer could have used something that the system already provided.


With multiple programmers, you can probably expect a versioning …

Post a comment

Flag this profile!

Flag this profile as:

or Cancel