Skip to content

Instantly share code, notes, and snippets.

@cored
Created November 19, 2013 18:27
Show Gist options
  • Save cored/7550016 to your computer and use it in GitHub Desktop.
Save cored/7550016 to your computer and use it in GitHub Desktop.
def create_file(filename, &block)
File.open(filename, 'w') do |file|
Dictionary::Sequences[@content].to_hash.each_pair do |sequence, word|
yield file, sequence, word
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment