From d0d0fe4995d5be0bc7d1bc749c959468dec2f35c Mon Sep 17 00:00:00 2001 From: Chris Zimmerman Date: Tue, 1 Oct 2019 16:45:47 -0400 Subject: en/ruby - Adds documentation for multiline comments --- ruby.html.markdown | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'ruby.html.markdown') diff --git a/ruby.html.markdown b/ruby.html.markdown index d77672ab..b36d1526 100644 --- a/ruby.html.markdown +++ b/ruby.html.markdown @@ -23,6 +23,15 @@ contributors: ```ruby # This is a comment +=begin +This is a multi-line comment. +The beginning line must start with "=begin" +and the ending line must start with "=end". + +You can do this, or start each line in +a multi-line comment with the # character. +=end + # In Ruby, (almost) everything is an object. # This includes numbers... 3.class #=> Integer -- cgit v1.2.3 From 03c06ac1bc8dc2da43d6ff29cade0d235103033c Mon Sep 17 00:00:00 2001 From: Alex Mendes da Costa Date: Mon, 9 Dec 2019 09:19:36 -0800 Subject: Fix typo in ruby.html.markdown "arugments" => "arguments" --- ruby.html.markdown | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ruby.html.markdown') diff --git a/ruby.html.markdown b/ruby.html.markdown index d77672ab..f437adcf 100644 --- a/ruby.html.markdown +++ b/ruby.html.markdown @@ -410,7 +410,7 @@ def guests(&block) end # The 'call' method on the Proc is similar to calling 'yield' when a block is -# present. The arguments passed to 'call' will be forwarded to the block as arugments. +# present. The arguments passed to 'call' will be forwarded to the block as arguments. guests { |n| "You have #{n} guests." } # => "You have 4 guests." -- cgit v1.2.3