Tag Archives: Programming

I.Am.Lazy.Programmer

http://c2.com/cgi/wiki?LazyProgrammer

Comments ( 0 )

to_proc or not to_proc

Instead of writing this [sourcecode language='ruby'] Profile.find(:all).collect{ |x| x.email } [/sourcecode] I could write this using Rails’ Symbol#to_proc [sourcecode language='ruby'] Profile.find(:all).collect(&:email) [/sourcecode] Nice.

Comments ( 1 )

Hello World

[sourcecode language='ruby']puts ‘Hello World’[/sourcecode]

Comments ( 0 )