Skip to content

Instantly share code, notes, and snippets.

@raganwald
Forked from wycats/touchnotes.py
Created July 21, 2008 20:11
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/90 to your computer and use it in GitHub Desktop.
Save raganwald/90 to your computer and use it in GitHub Desktop.
merb_core = macros {
if Merb.logger.level == Merb::Logger::DEBUG
def debug(string)
Merb.logger.debug "Foo"
end
else
def debug(string) end
end
}
with(merb_core, andand, try) {
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