diff options
author | Divay Prakash <divayprakash@users.noreply.github.com> | 2020-01-24 19:45:12 +0530 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-01-24 19:45:12 +0530 |
commit | b00a26d98eb33ce1275eb40145ce9ff20633ad4c (patch) | |
tree | a5a816948e9b57a98312f59c844bee0d26603c2b /ruby.html.markdown | |
parent | b2e762307e064843059a5e649f3e7016032e8d74 (diff) | |
parent | 529883d57870953493013c93b7d44fae6d4db88e (diff) |
Merge branch 'master' into add-csharp-resource
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." |