Skip to content

Instantly share code, notes, and snippets.

View rcorreia's full-sized avatar

Ryan Thomas Correia Ortega rcorreia

View GitHub Profile
@rcorreia
rcorreia / gist:3632616
Created September 5, 2012 07:28 — forked from ryanlecompte/gist:3631742
My solution to New Relic's programming challenge
# I had a lot of fun doing this one! The following code makes
# the tests at https://gist.github.com/6ea0a0ba5702824075ab pass.
#
# NOTE: I normally would DRY some of this code up, but it's just a
# fun challenge and would never be deployed to production. :)
module MethodInstrumenter
def self.instrument_path(path)
@path = path
@instrumenting = false