mirror of
https://github.com/adambard/learnxinyminutes-docs.git
synced 2024-12-23 17:41:41 +00:00
Merge pull request #3664 from chriszimmerman/en-ruby-multiline-comments
[en/ruby] - Adds documentation for multiline comments
This commit is contained in:
commit
b9faf4c258
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user