Skip to content

Instantly share code, notes, and snippets.

@sbellware
Created June 30, 2010 22:16
Show Gist options
  • Save sbellware/459296 to your computer and use it in GitHub Desktop.
Save sbellware/459296 to your computer and use it in GitHub Desktop.
class Hash
def prepend(value, key)
aditional_value = delete(key)
merge! key => "#{value} #{aditional_value}".rstrip
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment