From 041a4fb2d47399f75087b9e433bd5a882d9ef518 Mon Sep 17 00:00:00 2001 From: Cale Bybee <44282024+calebybee@users.noreply.github.com> Date: Wed, 14 Nov 2018 09:18:55 -0700 Subject: [PATCH] crete ruby-puts (#21524) --- guide/english/ruby/ruby-puts/index.md | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 guide/english/ruby/ruby-puts/index.md diff --git a/guide/english/ruby/ruby-puts/index.md b/guide/english/ruby/ruby-puts/index.md new file mode 100644 index 00000000000..e4a01da7f0d --- /dev/null +++ b/guide/english/ruby/ruby-puts/index.md @@ -0,0 +1,21 @@ +--- +title: Ruby Puts +--- + +The puts call is similar to the print call, with a few exceptions. The puts call will add a new line to the end of each argument, whereas print will simply print the argument as stated. + +For example, `puts[1, 2, 3, 4, 5]` will output: + +```ruby +1 +2 +3 +4 +5 +``` + +While `print[1, 2, 3, 4, 5]` will output: + +```ruby +[1, 2, 3, 4, 5] +```