This method is only available on newer versions. The first available version (v2_6_3) is shown here.
say(message = "", color = nil, force_new_line = (message.to_s !~ /( |\\t)\\Z/))
Say (print) something to the user. If the sentence ends with a whitespace or tab character, a new line is not appended (print + flush). Otherwise are passed straight to puts (behavior got from Highline).
say(“I know you knew that.”)
# File lib/bundler/vendor/thor/lib/thor/shell/basic.rb, line 88 def say(message = "", color = nil, force_new_line = (message.to_s !~ /( |\t)\Z/)) buffer = prepare_message(message, *color) buffer << "\n" if force_new_line && !message.to_s.end_with?("\n") stdout.print(buffer) stdout.flush end