diff options
author | Brian Christian <brchristian@gmail.com> | 2016-02-10 10:10:38 -0800 |
---|---|---|
committer | Brian Christian <brchristian@gmail.com> | 2016-02-10 10:10:38 -0800 |
commit | e8aeda2ab39b5d416a72edfa74e0fb17721eb6f9 (patch) | |
tree | ea2b76a40f9d9ce3046a9fae3f177b9e4c0b1706 /guides/source | |
parent | c74045cf0771ab51dfeca94b30c447cab6193e60 (diff) | |
download | rails-e8aeda2ab39b5d416a72edfa74e0fb17721eb6f9.tar.gz rails-e8aeda2ab39b5d416a72edfa74e0fb17721eb6f9.tar.bz2 rails-e8aeda2ab39b5d416a72edfa74e0fb17721eb6f9.zip |
rename to 'second_to_last' and 'third_to_last'
Diffstat (limited to 'guides/source')
-rw-r--r-- | guides/source/active_support_core_extensions.md | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/guides/source/active_support_core_extensions.md b/guides/source/active_support_core_extensions.md index 91cf48a680..10122629b2 100644 --- a/guides/source/active_support_core_extensions.md +++ b/guides/source/active_support_core_extensions.md @@ -2240,7 +2240,7 @@ Similarly, `from` returns the tail from the element at the passed index to the e [].from(0) # => [] ``` -The methods `second`, `third`, `fourth`, and `fifth` return the corresponding element (`first` is built-in), while `penultimate` and `antepenultimate` return the second-to-last and third-to-last elements, respectively. Thanks to social wisdom and positive constructiveness all around, `forty_two` is also available. +The methods `second`, `third`, `fourth`, and `fifth` return the corresponding element, as do `second_to_last` and `third_to_last` (`first` and `last` are built-in). Thanks to social wisdom and positive constructiveness all around, `forty_two` is also available. ```ruby %w(a b c d).third # => "c" |