Check out example codes for "ruby comment". It will help you in understanding the concepts better.

Code Example 1

# Single line comment

=begin
multiline
comment
=end

Code Example 2

#comment only one line
=begin 
all comment here
=end

Learn ReactJs, React Native from akashmittal.com