Programming Ruby 3.2 (5th Edition): B2.0 page 468, missing puts

@noelrappin

page 468, reference/kwargs_2.rb produces no output :

% ruby -w reference/kwargs_2.rb 
%

Adding puts to the last line shows a result :

puts header("TOC", class: "nav", level: 2, id: 123)

% ruby -w reference/kwargs_2.rb
<h2 class="nav" id="123">TOC</h2>

I think I want that result to be inline like the previous example. Actually… not sure why that isn’t working. I’ll keep an eye on that one, it should be displaying output. I wonder if the line is too long.