2d script runs but then stalls program until window is manually closed

Hi all. New here and a bit stumped.
I’ve defined a method which evaluates a script (if I said that right) to open a Ruby 2d window and display some positioned text. If I place anything before the line that runs this method it is executed but nothing in any following lines is executed unless I use the mouse to close the Ruby 2d window.
e.g.,
puts “1”
prints a 1 in the command window but only if it goes before and not after the line that runs the method
that evaluates the 2d script.
The last line in the 2d script is “show”, which launches the window with text. Should I add a following line to get back to the program?