Skip to content

Instantly share code, notes, and snippets.

@rue

rue/gist:1479270

Created Dec 15, 2011
Embed
What would you like to do?
The right way to comment
# The correct way is to do this.
#
# Possibly with some additional stuff here,
# but note the trail.
#
module YayComments
##
# Sometimes you need the double-hash, so you do this.
#
# And continue here as needed.
#
attr_accessor :wee
# This is not good,
# leaving a space.
def foo
end
## And this I really don't like either
# because it just looks weird.
def moomin
end
# Sometimes I leave a space here, but I might not.
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment