Export with masic comment

Add magic comment when export.

```ruby
# -*- mode: ruby -*-
# vi: set ft=ruby :
```