1
0
mirror of https://github.com/adambard/learnxinyminutes-docs.git synced 2025-08-11 17:24:29 +02:00

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

View File

@@ -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