Make sure trailing comments are far enough from the code : Comments « Language Basics « Ruby






Make sure trailing comments are far enough from the code



@counter            # keeps track times page has been hit
@siteCounter        # keeps track of times all pages have been hit

 








Related examples in the same category

1.What are Comments
2.This block comment conceals several lines from the interpreter with =begin/=end:
3.Create comments in Ruby, using the # symbol.
4.Some valid examples of commenting in Ruby: