diff --git a/README.md b/README.md index 894bbc2..1eb8425 100644 --- a/README.md +++ b/README.md @@ -197,6 +197,7 @@ smart people at [Hashrocket](http://hashrocket.com/). - [Are They All True?](ruby/are-they-all-true.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) - [Comparing Class Hierarchy Relationships](ruby/comparing-class-hierarchy-relationships.md) - [Comparing Arrays In RSpec](ruby/comparing-arrays-in-rspec.md) diff --git a/ruby/block-comments.md b/ruby/block-comments.md new file mode 100644 index 0000000..063c330 --- /dev/null +++ b/ruby/block-comments.md @@ -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)