Skip to content

Instantly share code, notes, and snippets.

@careo
Created January 20, 2009 22:38
Show Gist options
  • Select an option

  • Save careo/49706 to your computer and use it in GitHub Desktop.

Select an option

Save careo/49706 to your computer and use it in GitHub Desktop.
class Do
@@be = "Be"
def Do.be_do_be &blk
puts @@be
yield
end
end
@@be = "Do"
Do.be_do_be do
puts @@be
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment