Created
November 28, 2012 06:00
-
-
Save tsyber1an/4159312 to your computer and use it in GitHub Desktop.
xml helper
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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