aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/lib/active_support/core_ext/array/access.rb
Commit message (Collapse)AuthorAgeFilesLines
* Tweaks CHANGELOGs and docs [ci skip]Ryuta Kamizono2019-03-311-4/+4
| | | | | | | * add leading `#` before `=>` since hash rocket is valid Ruby code * add backticks * remove trailing spaces * and more
* Fix including/excluding flatteningGabriel Sobrinho2019-03-061-6/+6
|
* Added Array#including, Array#excluding, Enumerable#including, ↵David Heinemeier Hansson2019-03-051-4/+16
| | | | Enumerable#excluding
* Update incorrect backtick usage in RDoc to teletypeT.J. Schuck2017-11-221-2/+2
| | | [ci skip]
* [Active Support] `rubocop -a --only Layout/EmptyLineAfterMagicComment`Koichi ITO2017-07-111-0/+1
|
* Use frozen-string-literal in ActiveSupportKir Shatrov2017-07-091-0/+1
|
* Revert "Merge pull request #29540 from kirs/rubocop-frozen-string"Matthew Draper2017-07-021-1/+0
| | | | | This reverts commit 3420a14590c0e6915d8b6c242887f74adb4120f9, reversing changes made to afb66a5a598ce4ac74ad84b125a5abf046dcf5aa.
* Enforce frozen string in RubocopKir Shatrov2017-07-011-0/+1
|
* add missing comment out [ci skip]bogdanvlviv2017-01-201-1/+1
|
* rename to 'second_to_last' and 'third_to_last'Brian Christian2016-02-101-4/+4
|
* allow Array.penultimate and Array.antepenultiate access methodsBrian Christian2016-02-091-0/+14
|
* Move Array#without from Grouping to Access concern and add dedicated test ↵David Heinemeier Hansson2015-03-021-0/+12
| | | | (relates to #19157)
* A little performance improvement using 'take' method over 'first'Santosh Wadghule2015-01-161-1/+1
|
* Avoid creating range objects (take II)Akira Matsuda2014-10-251-1/+5
|
* Merge pull request #15276 from kuldeepaggarwal/fix-array-toRafael Mendonça França2014-05-231-1/+3
|\ | | | | Array#to now accept negative position also.
| * revert 96525d63Kuldeep Aggarwal2014-05-231-1/+3
| | | | | | | | `Array#to` is working for negative position
* | add test cases for negative position in Array#fromKuldeep Aggarwal2014-05-231-0/+2
|/
* Add Rdoc document for Array#forty_twoutenmiki2013-10-311-0/+2
|
* Updating Array access docs more consistentMatt Bridges2013-01-101-4/+4
| | | | [ci skip]
* update documentation of array/access methods [ci skip]Francesco Rodriguez2012-05-281-8/+16
|
* AS core_ext refactoringAlexey Gaziev2012-04-291-1/+1
|
* avoid creating range objectsAaron Patterson2011-05-291-1/+1
|
* fixed a small bug with Array#from core_extJosh Kalderimis2011-04-271-1/+1
|
* using @tenderlove's suggested implementation to speed things upJared McFarland2011-04-271-1/+1
|
* fixing Array#from to return consistent resultsJared McFarland2011-04-261-2/+2
|
* [].from(0) actually returns [], not nilRyan Bigg2009-12-171-1/+1
|
* Convert array extension modules to class reopensJeremy Kemper2009-03-211-46/+39
|
* Reduced the number of literal aliases to the range that has actually seen ↵David Heinemeier Hansson2008-11-211-23/+3
| | | | personal use. With the massive savings in overhead, I was able to fit Array#forty_two
* Merge docrailsPratik Naik2008-10-051-9/+9
|
* Merge docrails changesPratik Naik2008-07-281-9/+11
|
* Added Array#second through Array#tenth as aliases for Array#[1] through ↵David Heinemeier Hansson2008-06-171-0/+45
| | | | Array#[9] [DHH]
* Improve documentation.Pratik Naik2008-04-051-4/+2
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@9226 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Added Array#from and Array#to that behaves just from String#from and ↵David Heinemeier Hansson2007-11-271-0/+28
String#to [DHH] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8224 5ecf4fe2-1ee6-0310-87b1-e25e094e27de