Monday, June 25, 2007

Nifty Ruby Trick #38

Found this in one of the example camping.rb apps:

puts File.read(__FILE__).gsub(/.*__END__/m, '')

# code goes here

__END__
/* css here in this example */



Nifty!