Open ghost opened 6 years ago
Step by step:
[2] pry(main)> require 'builder' => true [3] pry(main)> xml = Builder::XmlMarkup.new => [4] pry(main)> xml.instruct! => nil
xml.instruct! always returns nil, independently of the parameters passed to it.
You've to pass target
indent
args
xml = Builder::XmlMarkup.new(target: $stdout, indent: 2)
Step by step:
[2] pry(main)> require 'builder' => true [3] pry(main)> xml = Builder::XmlMarkup.new => [4] pry(main)> xml.instruct! => nil
xml.instruct! always returns nil, independently of the parameters passed to it.