The code below builds a request summary through a method with named arguments. You need to determine the exact stdout of the program.
Requirements
- Assume the program is run as is.
- You need to specify the output of
puts report.inspect.
- The answer must take into account Ruby’s current behavior with named arguments and mutable objects.
How to reproduce
- Save the code to a file
main.rb.
- Run:
ruby main.rb
Expected behavior
- The program prints exactly one line.
- The line format must match character-for-character, including the order of elements in hashes and arrays.