Skip to content

Instantly share code, notes, and snippets.

@banister
Created November 30, 2011 02:57
Show Gist options
  • Select an option

  • Save banister/1407780 to your computer and use it in GitHub Desktop.

Select an option

Save banister/1407780 to your computer and use it in GitHub Desktop.
[4] (pry) main: 0> ls -mv Hash.new
BasicObject methods: ! != __id__ __send__ equal? instance_eval instance_exec
Kernel methods: !~ <=> === =~ class clone define_singleton_method display dup enum_for extend freeze frozen? initialize_clone initialize_dup instance_of? instance_variable_defined? instance_variable_get instance_variable_set instance_variables is_a? kind_of? method methods nil? object_id pretty_inspect private_methods protected_methods psych_y public_method public_methods public_send respond_to? respond_to_missing? send singleton_class singleton_methods taint tainted? tap to_enum trust untaint untrust untrusted?
PP::ObjectMixin methods: pretty_print_inspect pretty_print_instance_variables
Object methods: __binding__ pry psych_to_yaml to_yaml to_yaml_properties
Enumerable methods: all? any? chunk collect collect_concat count cycle detect drop drop_while each_cons each_entry each_slice each_with_index each_with_object entries find find_all find_index first flat_map grep group_by inject map max max_by min min_by minmax minmax_by none? one? partition reduce reverse_each slice_before sort sort_by take take_while zip
Hash methods: == [] []= assoc clear compare_by_identity compare_by_identity? default default= default_proc default_proc= delete delete_if each each_key each_pair each_value empty? eql? fetch flatten has_key? has_value? hash include? index inspect invert keep_if key key? keys length member? merge merge! pretty_print pretty_print_cycle rassoc rehash reject reject! replace select select! shift size store to_a to_hash to_s update value? values values_at
[5] (pry) main: 0>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment