Ruby Programming Language

  1. Collections and Data Structures
    1. Arrays
      1. Creating Arrays
        1. Array Literals
          1. Array.new
            1. Array Constructor Methods
              1. Splitting Strings to Arrays
              2. Accessing Elements
                1. Indexing
                  1. Negative Indexes
                    1. Slicing
                      1. Range Access
                        1. at Method
                        2. Modifying Arrays
                          1. Adding Elements
                            1. push
                              1. <<
                                1. unshift
                                  1. insert
                                    1. concat
                                    2. Removing Elements
                                      1. pop
                                        1. shift
                                          1. delete
                                            1. delete_at
                                              1. slice!
                                              2. Updating Elements
                                                1. Direct Assignment
                                                  1. fill Method
                                                2. Common Array Methods and Iteration
                                                  1. length and size
                                                    1. empty?
                                                      1. include?
                                                        1. index and rindex
                                                          1. sort and reverse
                                                            1. uniq
                                                              1. flatten
                                                                1. compact
                                                                  1. join
                                                                    1. map, select, reject
                                                                      1. each_with_index
                                                                        1. zip
                                                                      2. Hashes
                                                                        1. Creating Hashes
                                                                          1. Hash Literals
                                                                            1. Hash.new
                                                                              1. Default Values
                                                                              2. Using Symbols as Keys
                                                                                1. Symbol Syntax
                                                                                  1. String vs Symbol Keys
                                                                                  2. Accessing and Assigning Values
                                                                                    1. Bracket Notation
                                                                                      1. fetch Method
                                                                                        1. dig Method
                                                                                          1. Default Value Handling
                                                                                          2. Modifying Hashes
                                                                                            1. Adding and Removing Pairs
                                                                                              1. delete and delete_if
                                                                                                1. Merging Hashes
                                                                                                  1. merge and merge!
                                                                                                  2. Common Hash Methods and Iteration
                                                                                                    1. keys and values
                                                                                                      1. each_pair
                                                                                                        1. each_key and each_value
                                                                                                          1. has_key? and has_value?
                                                                                                            1. key? and value?
                                                                                                              1. invert
                                                                                                                1. select and reject
                                                                                                                  1. transform_keys and transform_values
                                                                                                                2. Ranges
                                                                                                                  1. Inclusive Ranges
                                                                                                                    1. Double Dot Syntax
                                                                                                                      1. End Included
                                                                                                                      2. Exclusive Ranges
                                                                                                                        1. Triple Dot Syntax
                                                                                                                          1. End Excluded
                                                                                                                          2. Creating Ranges
                                                                                                                            1. Numeric Ranges
                                                                                                                              1. Character Ranges
                                                                                                                                1. Custom Object Ranges
                                                                                                                                2. Ranges in Conditionals and Loops
                                                                                                                                  1. case Statements
                                                                                                                                    1. for Loops
                                                                                                                                      1. Membership Testing
                                                                                                                                      2. Converting Ranges to Arrays
                                                                                                                                        1. to_a Method
                                                                                                                                          1. Memory Considerations
                                                                                                                                          2. Range Methods
                                                                                                                                            1. cover? vs include?
                                                                                                                                              1. first and last
                                                                                                                                                1. step Method
                                                                                                                                              2. Sets
                                                                                                                                                1. Creating and Using Sets
                                                                                                                                                  1. Set Class
                                                                                                                                                    1. Requiring 'set' Library
                                                                                                                                                      1. Array to Set Conversion
                                                                                                                                                      2. Set Operations
                                                                                                                                                        1. Union
                                                                                                                                                          1. Intersection
                                                                                                                                                            1. Difference
                                                                                                                                                              1. Subset and Superset
                                                                                                                                                                1. Disjoint Sets
                                                                                                                                                                2. Set Methods
                                                                                                                                                                  1. add and delete
                                                                                                                                                                    1. include? and member?
                                                                                                                                                                      1. each and map