Created
November 10, 2012 20:51
-
-
Save greggroth/4052441 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
pry(main)> my_array = [1, 2, 3, 4, 5] | |
=> [1, 2, 3, 4, 5] | |
pry(main)> ls | |
self.methods: include private public to_s | |
locals: _ _dir_ _ex_ _file_ _in_ _out_ _pry_ my_array | |
pry(main)> cd my_array | |
pry(#<Array>):1> ls | |
Enumerable#methods: all? any? chunk collect_concat detect each_cons each_entry each_slice each_with_index each_with_object | |
entries find find_all flat_map grep group_by inject max max_by member? min min_by minmax minmax_by none? one? | |
partition reduce slice_before sort_by | |
Array#methods: & * + - << <=> == [] []= assoc at clear collect collect! combination compact compact! concat count | |
cycle delete delete_at delete_if drop drop_while each each_index empty? eql? fetch fill find_index first flatten | |
flatten! frozen? hash include? index insert inspect join keep_if last length map map! pack permutation place pop | |
pretty_print pretty_print_cycle product push rassoc reject reject! repeated_combination repeated_permutation replace | |
reverse reverse! reverse_each rindex rotate rotate! sample select select! shelljoin shift shuffle shuffle! size slice | |
slice! sort sort! sort_by! take take_while to_a to_ary to_s transpose uniq uniq! unshift values_at zip | | |
self.methods: __pry__ | |
locals: _ _dir_ _ex_ _file_ _in_ _out_ _pry_ | |
pry(#<Array>):1> cd .. | |
pry(main)> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment