Check out example codes for "comment in ruby". It will help you in understanding the concepts better.
Code Example 1
#comment only one line
=begin
all comment here
=end
Code Example 2
# Single line comment
=begin
multiline
comment
=end
Learn ReactJs, React Native from akashmittal.com