Commit Graph

5 Commits (81f9dce834cd3e93535f869f1a76b2b15331fcc8)

Author SHA1 Message Date
Michael Kane 10957f405f Add .clear method (#25500) 2018-12-20 07:53:56 -05:00
Jon Kulton 5be558a802 Improvements to Common Array Methods Ruby guide (#24705)
- Edits to the intro paragraph for shorter and clearer sentences.
- Updated the `.length` description to refer to it as *the* array rather than *your*, to be consistent with other descriptions.
- For `.first` and `.last`, I updated the wording from "accesses" to "returns".
- Added clarification that `.pop` returns the removed element (since `.shift` also mentions this).
- Updated the code snippet for `.select`, which mistakenly implied that the original array is modified
- Added clarification that `.include?` returns `true` if the array includes the element.
- The section for `.flatten` was stuck in the code snippet for `include?`, I've fixed that.
- Added clarification that `.uniq` does not modify the original array.
- Updated the `.uniq` description by cutting extra wording. `.uniq` doesn't take an array, it's called on an array.
2018-12-13 06:27:31 -05:00
Giuseppe Varriale cc84d010fd Fixed pop method description (#21254) 2018-11-08 12:54:19 +00:00
Sergei Mellow 3d694d7ffd added missing closing tag for code snippet (#25673) 2018-10-23 15:09:26 -04:00
Mrugesh Mohapatra da0df12ab7 fix(guide): simplify directory structure 2018-10-16 21:32:40 +05:30