We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
On this page, It shows the following example code:
builder = Psych::Visitors::YAMLTree.new builder << { :foo => 'bar' } builder.tree # => #<Psych::Nodes::Stream .. }
This seems to work up until 2.4.0. In 2.5.0+, it seems that the optional parameters for new became mandatory:
new
pry(main)> builder = Psych::Visitors::YAMLTree.new ArgumentError: wrong number of arguments (given 0, expected 3)
I expected that the sample code on a docs page should be valid for the particular version of Ruby I'm looking at.
IDK
The text was updated successfully, but these errors were encountered:
No branches or pull requests
What is the problem?
On this page, It shows the following example code:
This seems to work up until 2.4.0. In 2.5.0+, it seems that the optional parameters for
new
became mandatory:What was the expected behaviour?
I expected that the sample code on a docs page should be valid for the particular version of Ruby I'm looking at.
If you have an idea for a potential fix, list it here
IDK
The text was updated successfully, but these errors were encountered: