diff options
author | Divay Prakash <divayprakash@users.noreply.github.com> | 2020-01-24 20:02:22 +0530 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-01-24 20:02:22 +0530 |
commit | 9f41d38cec5fb891c5450a39a440b948eaf913e5 (patch) | |
tree | 82636e5e18ad7df9636d7939e2aa1f6abecf58c9 /ruby.html.markdown | |
parent | 7e27297ea555764a5e690f251205d9323b349bb2 (diff) | |
parent | 8e18975548d40ab0de6924ffac38127d7f01fecd (diff) |
Merge branch 'master' into dart-formatting
Diffstat (limited to 'ruby.html.markdown')
-rw-r--r-- | ruby.html.markdown | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/ruby.html.markdown b/ruby.html.markdown index d77672ab..3fc2ed2d 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 @@ -410,7 +419,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." |