Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

  • Save rainly/911521 to your computer and use it in GitHub Desktop.

Select an option

Save rainly/911521 to your computer and use it in GitHub Desktop.
local_filename = "create_file_name.rb"
doc =<<'FILE'
# This is a text for the file #{local_filename}.
FILE
File.open(local_filename, 'w+') {|f| f.write(doc) }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment