Still by VisualMode
Home Blogmarks TILs Consulting
Home Blogmarks TILs Consulting
← Back to all TILs

Block Comments

ruby Written January 15, 2016

Ruby supports (ugly) block comments. They look like this:

=begin
This is a block comment.

I can put whatever I want in here.
=end
def do_something
  ...
end

source

Other posts like this

  • Add Comments To Regex With Free-Spacing ruby
  • Multi-Line Comments ruby
  • Passing Arbitrary Methods As Blocks ruby
  • What To Do When You Don't Rescue ruby
  • Refer To Implicit Block Argument With It ruby