mirror of
https://github.com/adambard/learnxinyminutes-docs.git
synced 2024-12-23 17:41:41 +00:00
en/ruby - Adds documentation for multiline comments
This commit is contained in:
parent
dff76c7965
commit
d0d0fe4995
@ -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