Skip to content

Instantly share code, notes, and snippets.

@seanlinsley
Created April 14, 2013 21:33
Show Gist options
  • Save seanlinsley/5384310 to your computer and use it in GitHub Desktop.
Save seanlinsley/5384310 to your computer and use it in GitHub Desktop.
def StandardError *names
names.each{ |n| const_set n, Class.new(StandardError) }
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment