Skip to content

Instantly share code, notes, and snippets.

@atnan
Created December 2, 2008 07:28
Show Gist options
  • Save atnan/31044 to your computer and use it in GitHub Desktop.
Save atnan/31044 to your computer and use it in GitHub Desktop.
#!/usr/bin/env ruby
File.open(__FILE__, File::WRONLY) do |file|
file.truncate(DATA.pos)
file.seek(DATA.pos)
file.write('In your __FILE__, editing your datas')
end
__END__
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment