Created
October 12, 2011 13:14
-
-
Save ThroughTheNet/1281199 to your computer and use it in GitHub Desktop.
adding attribute and text with nokogiri builder
This file contains 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
builder = Nokogiri::XML::Builder.new do | |
root { | |
item { | |
tag "some text", :attribute => 'value' | |
} | |
} | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment