-
-
Save meangrape/70421 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env ruby | |
$existing_methods = [] | |
def print_methods(library) | |
new_methods = [].methods.sort - $existing_methods | |
for method in new_methods | |
puts "Array##{method}" | |
end | |
puts "(total: #{new_methods.size} added by #{library})\n\n" | |
$existing_methods = [].methods.sort | |
end | |
"Standard: ====================================================================" | |
print_methods("stdlib") | |
"RubyGems: ====================================================================" | |
require "rubygems" | |
print_methods("rubygems") | |
"ActiveSupport: ===============================================================" | |
require "activesupport" | |
print_methods("activesupport") | |
puts "WHAT THE FUCK RUBY WHAT THE FUCK!?!" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Array#& | |
Array#* | |
Array#+ | |
Array#- | |
Array#<< | |
Array#<=> | |
Array#== | |
Array#=== | |
Array#=~ | |
Array#[] | |
Array#[]= | |
Array#__id__ | |
Array#__send__ | |
Array#all? | |
Array#any? | |
Array#assoc | |
Array#at | |
Array#class | |
Array#clear | |
Array#clone | |
Array#collect | |
Array#collect! | |
Array#compact | |
Array#compact! | |
Array#concat | |
Array#delete | |
Array#delete_at | |
Array#delete_if | |
Array#detect | |
Array#display | |
Array#dup | |
Array#each | |
Array#each_index | |
Array#each_with_index | |
Array#empty? | |
Array#entries | |
Array#eql? | |
Array#equal? | |
Array#extend | |
Array#fetch | |
Array#fill | |
Array#find | |
Array#find_all | |
Array#first | |
Array#flatten | |
Array#flatten! | |
Array#freeze | |
Array#frozen? | |
Array#grep | |
Array#hash | |
Array#id | |
Array#include? | |
Array#index | |
Array#indexes | |
Array#indices | |
Array#inject | |
Array#insert | |
Array#inspect | |
Array#instance_eval | |
Array#instance_of? | |
Array#instance_variable_defined? | |
Array#instance_variable_get | |
Array#instance_variable_set | |
Array#instance_variables | |
Array#is_a? | |
Array#join | |
Array#kind_of? | |
Array#last | |
Array#length | |
Array#map | |
Array#map! | |
Array#max | |
Array#member? | |
Array#method | |
Array#methods | |
Array#min | |
Array#nil? | |
Array#nitems | |
Array#object_id | |
Array#pack | |
Array#partition | |
Array#pop | |
Array#private_methods | |
Array#protected_methods | |
Array#public_methods | |
Array#push | |
Array#rassoc | |
Array#reject | |
Array#reject! | |
Array#replace | |
Array#respond_to? | |
Array#reverse | |
Array#reverse! | |
Array#reverse_each | |
Array#rindex | |
Array#select | |
Array#send | |
Array#shift | |
Array#singleton_methods | |
Array#size | |
Array#slice | |
Array#slice! | |
Array#sort | |
Array#sort! | |
Array#sort_by | |
Array#taint | |
Array#tainted? | |
Array#to_a | |
Array#to_ary | |
Array#to_s | |
Array#transpose | |
Array#type | |
Array#uniq | |
Array#uniq! | |
Array#unshift | |
Array#untaint | |
Array#values_at | |
Array#zip | |
Array#| | |
(total: 119 added by stdlib) | |
Array#taguri | |
Array#taguri= | |
Array#to_yaml | |
Array#to_yaml_properties | |
Array#to_yaml_style | |
Array#yaml_initialize | |
(total: 6 added by rubygems) | |
Array#` | |
Array#acts_like? | |
Array#b64encode | |
Array#blank? | |
Array#breakpoint | |
Array#class_eval | |
Array#copy_instance_variables_from | |
Array#daemonize | |
Array#dclone | |
Array#debugger | |
Array#decode64 | |
Array#decode_b | |
Array#duplicable? | |
Array#each_cons | |
Array#each_slice | |
Array#each_with_object | |
Array#enable_warnings | |
Array#encode64 | |
Array#enum_cons | |
Array#enum_for | |
Array#enum_slice | |
Array#enum_with_index | |
Array#extend_with_included_modules_from | |
Array#extended_by | |
Array#extract_options! | |
Array#fifth | |
Array#forty_two | |
Array#fourth | |
Array#from | |
Array#group_by | |
Array#in_groups | |
Array#in_groups_of | |
Array#index_by | |
Array#instance_exec | |
Array#instance_values | |
Array#instance_variable_names | |
Array#load_with_new_constant_marking | |
Array#many? | |
Array#metaclass | |
Array#present? | |
Array#rand | |
Array#remove_subclasses_of | |
Array#require | |
Array#require_association | |
Array#require_dependency | |
Array#require_library_or_gem | |
Array#require_or_load | |
Array#returning | |
Array#second | |
Array#silence_stderr | |
Array#silence_stream | |
Array#silence_warnings | |
Array#split | |
Array#subclasses_of | |
Array#sum | |
Array#suppress | |
Array#third | |
Array#to | |
Array#to_default_s | |
Array#to_enum | |
Array#to_formatted_s | |
Array#to_json | |
Array#to_param | |
Array#to_query | |
Array#to_sentence | |
Array#to_set | |
Array#to_xml | |
Array#unloadable | |
Array#with_options | |
(total: 69 added by activesupport) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment