Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"Instruct!" does not work #61

Open
ghost opened this issue Jul 20, 2018 · 1 comment
Open

"Instruct!" does not work #61

ghost opened this issue Jul 20, 2018 · 1 comment

Comments

@ghost
Copy link

ghost commented Jul 20, 2018

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.

@i4pg
Copy link

i4pg commented Jan 13, 2023

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)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant