mirror of
https://github.com/jbranchaud/til
synced 2026-01-04 23:58:01 +00:00
Add Block Comments as a ruby til.
This commit is contained in:
16
ruby/block-comments.md
Normal file
16
ruby/block-comments.md
Normal file
@@ -0,0 +1,16 @@
|
||||
# Block Comments
|
||||
|
||||
Ruby supports (ugly) block comments. They look like this:
|
||||
|
||||
```ruby
|
||||
=begin
|
||||
This is a block comment.
|
||||
|
||||
I can put whatever I want in here.
|
||||
=end
|
||||
def do_something
|
||||
...
|
||||
end
|
||||
```
|
||||
|
||||
[source](http://stackoverflow.com/questions/536760/block-commenting-in-ruby)
|
||||
Reference in New Issue
Block a user