custom copyright text to ruby file automatically

How to automate the copyright text for each newly created files in ruby
projects or with rails framework.

For Rails you can create your own generators[1].
For other Ruby projects, I guess it depends on how you create your
files. If you're using some sort of IDE, it will depend on that,
otherwise, you;ll have to add it yourself.

Hope it helps.

[1]http://guides.rubyonrails.org/generators.html