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!
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 */