Skip to content

Instantly share code, notes, and snippets.

@dangerouse
Created February 8, 2012 03:20
Show Gist options
  • Save dangerouse/1764934 to your computer and use it in GitHub Desktop.
Save dangerouse/1764934 to your computer and use it in GitHub Desktop.
Ruby's macro equivalent
module DebuggingMacro
if AppConfig.logging.debugging_enabled
def debug(msg)
puts msg
end
else
def debug(msg); end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment