1
0
mirror of https://github.com/jbranchaud/til synced 2026-01-05 16:18:01 +00:00

Add Block Comments as a ruby til.

This commit is contained in:
jbranchaud
2016-01-15 16:02:08 -06:00
parent 07e8abd4af
commit 992b6e8b3f
2 changed files with 17 additions and 0 deletions

View File

@@ -197,6 +197,7 @@ smart people at [Hashrocket](http://hashrocket.com/).
- [Are They All True?](ruby/are-they-all-true.md) - [Are They All True?](ruby/are-they-all-true.md)
- [Assoc For Hashes](ruby/assoc-for-hashes.md) - [Assoc For Hashes](ruby/assoc-for-hashes.md)
- [Block Comments](ruby/block-comments.md)
- [Colorful Output With MiniTest](ruby/colorful-output-with-minitest.md) - [Colorful Output With MiniTest](ruby/colorful-output-with-minitest.md)
- [Comparing Class Hierarchy Relationships](ruby/comparing-class-hierarchy-relationships.md) - [Comparing Class Hierarchy Relationships](ruby/comparing-class-hierarchy-relationships.md)
- [Comparing Arrays In RSpec](ruby/comparing-arrays-in-rspec.md) - [Comparing Arrays In RSpec](ruby/comparing-arrays-in-rspec.md)

16
ruby/block-comments.md Normal file
View 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)