diff --git a/guide/english/ruby/ruby-puts/index.md b/guide/english/ruby/ruby-puts/index.md new file mode 100644 index 0000000000..e4a01da7f0 --- /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] +```