Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Fix a few typos [ci skip] | Robin Dupret | 2015-01-03 | 1 | -1/+1 |
| | |||||
* | Add docs for `Object.nil!` | claudiob | 2014-12-22 | 1 | -3/+9 |
| | | | | | | Also add doc examples for `Object.nil`. [ci skip] | ||||
* | Replace `#=>` with `# =>` [ci skip] | claudiob | 2014-12-17 | 1 | -2/+2 |
| | | | | | | | | @rafaelfranca suggested in f7c7bcd9 that code examples should display the result after `# =>` and not after `#=>`. This commit replaces *all* the occurrences of `#=>` in the code documentation (mostly added by me :sob:) with the suggested `# =>`. | ||||
* | Revert a change made to the example in 1ac4525 | Godfrey Chan | 2014-10-24 | 1 | -1/+1 |
| | | | | | | | @carlosantoniodasilva pointed out that when `@person` is nil then this would blow up when you ended up calling `#first`on `nil`. > "there’s no way to break a try chain when you enter it :D" [ci skip] | ||||
* | Include return value in examples added in #17378 [ci skip] | Zachary Scott | 2014-10-24 | 1 | -2/+2 |
| | |||||
* | Improved try documentation [ci skip] | Eugene Gilburg | 2014-10-24 | 1 | -8/+25 |
| | | | | | | | | | | - better `if` example - Added chaining example to the try method description - Documented the `respond_to?` check to the try method description - Clearer wording to explain that argument error is raised on argument mismatch to responding method, rather than to non-responding method (which is handled without exception by `try`) - `.any?` is more precise than `! .blank?` - Don't need to use `try` on `children` as (for regular associations) they will always be a collection or array that responds to `first` - Fix typos/grammar | ||||
* | DRY up try/try! | Ari Pollak | 2014-10-23 | 1 | -10/+6 |
| | |||||
* | Bring try! into parity with try. | Ari Pollak | 2014-10-22 | 1 | -1/+1 |
| | | | | Based on commit 5e51bdda. | ||||
* | We tenderized the wrong method! Object#try already had the yield option, ↵ | David Heinemeier Hansson | 2014-08-29 | 1 | -1/+10 |
| | | | | just needed some tenderloving instance_eval to fit the bill | ||||
* | Fixes typo in Object#try! | Jay Hayes | 2013-09-10 | 1 | -1/+1 |
| | |||||
* | Revert "Merge branch 'master' of github.com:rails/docrails" | Vijay Dev | 2013-08-17 | 1 | -1/+1 |
| | | | | | | | This reverts commit 70d6e16fbad75b89dd1798ed697e7732b8606fa3, reversing changes made to ea4db3bc078fb3093ecdddffdf4f2f4ff3e1e8f9. Seems to be a code merge done by mistake. | ||||
* | Fixes typo in Object#try! | Jay Hayes | 2013-07-26 | 1 | -1/+1 |
| | |||||
* | revamps the RDoc of Object#try | Xavier Noria | 2013-01-28 | 1 | -22/+30 |
| | |||||
* | Bring back changelog entries for Active Support | Carlos Antonio da Silva | 2012-08-11 | 1 | -2/+2 |
| | | | | Removed in 0228a73b1094a3e19ad291d2ce4789890c09578a, pull request #7310. | ||||
* | Add Object#try! with the old NoMethodError raising behavior | David Heinemeier Hansson | 2012-07-27 | 1 | -0/+14 |
| | |||||
* | will now return nil instead of raise a NoMethodError if the receiving ↵ | David Heinemeier Hansson | 2012-07-27 | 1 | -1/+4 |
| | | | | object does not implement the method | ||||
* | remove double hyphen that doesn't allow properly parsing | Francesco Rodriguez | 2012-06-04 | 1 | -5/+1 |
| | |||||
* | Improve docs for `try` by adding note on `BasicObject` | Piotr Sarnacki | 2012-05-20 | 1 | -0/+4 |
| | | | | [ci skip] closes #5790 | ||||
* | Update docs to public_send for Object#try | Oscar Del Ben | 2012-05-13 | 1 | -1/+1 |
| | |||||
* | update docs on Object#try | Vasiliy Ermolovich | 2012-05-13 | 1 | -1/+1 |
| | |||||
* | Object#try can't call private methods | Vasiliy Ermolovich | 2012-05-12 | 1 | -2/+2 |
| | |||||
* | Revert "don't raise NoMethodError the tried method doesn't exists" | José Valim | 2011-10-06 | 1 | -2/+0 |
| | | | | This reverts commit 29a5aeaae976bf8432d57ec996c7c81932a39de6. | ||||
* | don't raise NoMethodError the tried method doesn't exists | dmathieu | 2011-05-21 | 1 | -0/+2 |
| | |||||
* | NilClass is a singleton | Akira Matsuda | 2011-04-20 | 1 | -1/+1 |
| | |||||
* | oops fixed typo | Sebastian Martinez | 2011-04-18 | 1 | -1/+1 |
| | |||||
* | Fixed docs for NilClass#try | Sebastian Martinez | 2011-04-18 | 1 | -8/+8 |
| | |||||
* | Formatting docs | Sebastian Martinez | 2011-04-17 | 1 | -1/+1 |
| | |||||
* | Docs for NilClass#try | Sebastian Martinez | 2011-04-17 | 1 | -1/+13 |
| | |||||
* | Active Support typos. | R.T. Lechow | 2011-03-05 | 1 | -1/+1 |
| | |||||
* | :method: is not needed when RDoc can detect it | Santiago Pastorino | 2010-12-02 | 1 | -5/+0 |
| | |||||
* | Add support for try to just yield the object to a block if no method is to ↵ | raggi | 2010-11-14 | 1 | -1/+13 |
| | | | | be called. Kind of like a tap_if_present. | ||||
* | Remove dummy method definition in favor of RDoc hints: | Aaron Patterson | 2010-09-11 | 1 | -7/+5 |
| | | | | http://rdoc.rubyforge.org/RDoc/Parser/Ruby.html | ||||
* | try is an object extension | Jeremy Kemper | 2009-03-21 | 1 | -0/+36 |