Skip to content

Instantly share code, notes, and snippets.

@npj
Created November 3, 2010 21:41
Show Gist options
  • Save npj/661772 to your computer and use it in GitHub Desktop.
Save npj/661772 to your computer and use it in GitHub Desktop.
class Object
def method_missing(name, *args, &block)
fbomb = [102, 117, 99, 107, 105, 110, 103].inject("") { |s, c| s << c }
if respond_to?(n = name.to_s.gsub(/#{fbomb}_|_#{fbomb}/, ""))
send(n, *args, &block)
else
super(name, *args, &block)
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment