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

[feature] SaveOptions.inspect should show the options set (similar to ParseOptions) #2767

Closed
flavorjones opened this issue Jan 16, 2023 · 0 comments · Fixed by #2803
Closed

Comments

@flavorjones
Copy link
Member

What problem are you trying to solve?

SaveOptions would be more usable if its inspect method showed the options that were set, like ParseOptions does.

Please show your code!

Nokogiri::XML::ParseOptions.new(Nokogiri::XML::ParseOptions::DEFAULT_HTML)
# => #<Nokogiri::XML::ParseOptions:0x35c66ad @options=4196449 default_xml, default_html, recover, noerror, big_lines, default_schema, nonet, nowarning>             

# but

Nokogiri::XML::Node::SaveOptions.new(Nokogiri::XML::Node::SaveOptions::DEFAULT_XHTML).inspect
# => "#<Nokogiri::XML::Node::SaveOptions:0x77a14911 @options=18>"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant