Skip to content

Instantly share code, notes, and snippets.

View booch's full-sized avatar

Craig Buchek booch

View GitHub Profile
module PluralizedConsts
P = self
def const_missing(sym)
return super(sym) if Thread.current[:pc_const_missed]
begin
super(sym)
rescue NameError => e
begin
Thread.current[:pc_const_missed] = true