Ruby's output


Why does ruby print some unnecessary output in the end of program? For example it prints nil or the value of last used variable.

def welcome
    puts "Welcome to Ruby!"



Use a google search
== discussions / opinions ==
ruby why nil after using puts
for instance


This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.