How do I get the directory where the rakefile.rb is located?

I want to use this as my root directory to locate everything off.

Edit
Report