diff options
author | Vijay Dev <vijaydev.cse@gmail.com> | 2011-09-01 01:35:28 +0530 |
---|---|---|
committer | Vijay Dev <vijaydev.cse@gmail.com> | 2011-09-01 20:30:45 +0530 |
commit | 752d74f9522be3a9a0b2d904d5b6f9007100ea22 (patch) | |
tree | 36f7624d61de928a07921d2f5727ac7aa25600e2 /activesupport/lib/active_support/core_ext/enumerable.rb | |
parent | cfd785f910fc914c576133fee263875833ba0c92 (diff) | |
download | rails-752d74f9522be3a9a0b2d904d5b6f9007100ea22.tar.gz rails-752d74f9522be3a9a0b2d904d5b6f9007100ea22.tar.bz2 rails-752d74f9522be3a9a0b2d904d5b6f9007100ea22.zip |
docs formatting changes
Diffstat (limited to 'activesupport/lib/active_support/core_ext/enumerable.rb')
-rw-r--r-- | activesupport/lib/active_support/core_ext/enumerable.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/activesupport/lib/active_support/core_ext/enumerable.rb b/activesupport/lib/active_support/core_ext/enumerable.rb index ddb4f3012f..9343bb7106 100644 --- a/activesupport/lib/active_support/core_ext/enumerable.rb +++ b/activesupport/lib/active_support/core_ext/enumerable.rb @@ -97,7 +97,7 @@ module Enumerable end # Returns true if the enumerable has more than 1 element. Functionally equivalent to enum.to_a.size > 1. - # Can be called with a block too, much like any?, so people.many? { |p| p.age > 26 } returns true if more than 1 person is over 26. + # Can be called with a block too, much like any?, so <tt>people.many? { |p| p.age > 26 }</tt> returns true if more than one person is over 26. def many? cnt = 0 if block_given? @@ -110,7 +110,7 @@ module Enumerable end end - # The negative of the Enumerable#include?. Returns true if the collection does not include the object. + # The negative of the <tt>Enumerable#include?</tt>. Returns true if the collection does not include the object. def exclude?(object) !include?(object) end |