Skip to content

Instantly share code, notes, and snippets.

@beoran
Created May 31, 2011 07:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save beoran/1000089 to your computer and use it in GitHub Desktop.
Save beoran/1000089 to your computer and use it in GitHub Desktop.
Clarify end of Ruby blocks
module Foo
class Bar
def initialize(a)
@a = a
end # def initialize
def frob
if @a
puts @a
else
puts "@a not set"
end # if
end # def frob
end # class Bar
end # module Foo
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment