Skip to content

Instantly share code, notes, and snippets.

@raganwald
Forked from wycats/touchnotes.py
Created July 21, 2008 20:10
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 raganwald/89 to your computer and use it in GitHub Desktop.
Save raganwald/89 to your computer and use it in GitHub Desktop.
with(define_macros) {
if Merb.logger.level == Merb::Logger::DEBUG
def debug(string)
Merb.logger.debug "Foo"
end
else
def debug(string) end
end
}
with(macros) {
def some_method
debug("This is whack")
end
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment