Source Code for Me (

Allows you to paste souce code to blogs! Adapted for Twitter! Here is Search Form in case you missed your code.
Selected Language:
Show Linenumbers:
Short link for Twitter:

HTML view:

Copy Source | Copy HTML
  1. def append(location, data)
  2.   path =
  3.   raise "Location does not exist" unless path.exist?
  4., "a") do |file|
  5.     file.puts YAML.dump(data)
  6.   end
  7.   return data
  8. end

Based on Manoli.Net's CodeFormatter. Made by Topbot (c) 2008-2018