Skip to content

Instantly share code, notes, and snippets.

#!/usr/bin/env ruby1.8
# Method chosen carefully -- avoiding symbols
def unshift env, value
ENV[env] = ENV[env].to_s.split(':').unshift(value).join(':')
end
def read
homedir = '/home/rubygems'