begin end comment ruby code example
Example 1: comment in ruby
# Single line comment
=begin
multiline
comment
=end
Example 2: how to comment in ruby
# How to comment a single line
=begin
How to comment
Multiple lines
=end
# Single line comment
=begin
multiline
comment
=end
# How to comment a single line
=begin
How to comment
Multiple lines
=end