Skip to content

Instantly share code, notes, and snippets.

View craigw's full-sized avatar
🦄

Craig R Webster craigw

🦄
View GitHub Profile
@craigw
craigw / gist:70422
Created February 25, 2009 21:24 — forked from codahale/gist:70417
#!/usr/bin/env ruby
# Let's just worry about what's done to Array directly, and not the insanity
# in any of the parent classes.
$existing_methods = []
def print_methods(library)
new_methods = ([].methods.sort - [].class.superclass.methods.sort) - $existing_methods
for method in new_methods