Merge pull request #3664 from chriszimmerman/en-ruby-multiline-comments

[en/ruby] - Adds documentation for multiline comments
This commit is contained in:
Divay Prakash 2020-01-11 14:02:10 +05:30 committed by GitHub
commit b9faf4c258
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -23,6 +23,15 @@ contributors:
```ruby ```ruby
# This is a comment # 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. # In Ruby, (almost) everything is an object.
# This includes numbers... # This includes numbers...
3.class #=> Integer 3.class #=> Integer