Skip to content

Instantly share code, notes, and snippets.

@tsyber1an
Created November 28, 2012 06:00
Show Gist options
  • Save tsyber1an/4159312 to your computer and use it in GitHub Desktop.
Save tsyber1an/4159312 to your computer and use it in GitHub Desktop.
xml helper
module Alfabank
module XmlHelper
class <<self
def tag(name, value, attribues = {})
attrs = attribues.map{|n, v| "#{n}=\"#{v}\""}.join(' ')
"<#{name} #{attrs}>#{value}</#{name}>"
end
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment