30 Jul '12, 1pm

Builder::XmlMarkup extra to_s tag - Ruby Forum:

Hi, I'm trying to print out some xml and don't know what I'm doing. I'm getting this <to_s/> tag in the output. Where is it coming from and how do I get rid of it. Here's my test code. Any help appreciated. CODE: require "builder" class Fruit attr_accessor :name end fruit = Fruit.new() fruit.name = "Apple" xml = Builder::XmlMarkup.new(:indent=>2) xml.fruit do xml.name(fruit.name) end f = File.new("test.xml", "w") f.print(xml) OUTPUT: <fruit> <name>Apple</name> </fruit> <to_s/> Thanks, Ted

Full article: http://www.ruby-forum.com/topic/167813

Tweets

Don Ferrier: Model Builder: The Fort Worth-area builder has made a career out of building green...

Don Ferrier: Model Builder: The Fort Worth-area...

ecohomemagazine.com 31 Jul '12, 5am

Credit: Terri Glanger Photography Enlarge Close Don Ferrier first learned about energy modeling in 2004, when he was about...

July Digital issue of Green Builder Magazine: Leading the Eco-Revolution. also with #vhla coverage!

July Digital issue of Green Builder Magazine: L...

greenbuildermag.com 31 Jul '12, 8pm

In our constant pursuit for greater corporate sustainability, we realized that, like great homes and products, Green Build...

AdWords Remarketing Gets Tag Makeover, New Features

AdWords Remarketing Gets Tag Makeover, New Feat...

searchengineland.com 27 Jul '12, 6pm

Google has made some changes to the way advertisers do remarketing on AdWords, and is expanding an ongoing test. The vario...

Tag: What's in my iPhone?

Tag: What's in my iPhone?

retailtherapy.onsugar.com 21 Jul '12, 6am

I came across this tag on YouTube... where people just go through stuff in their iphones.. or any phones you are using. I ...