Ruby Comment Synatx

Legal comment syntax

Single line comment

1 # this is a comment

Block comment

1 =begin
2 This is part of
3 multi-line
4 comments
5 =end

Comment at end

1 @var # this is a comment

Reference