diff options
author | Alvaro Pereyra <alvaro@xendacentral.com> | 2012-05-28 03:24:52 -0500 |
---|---|---|
committer | Alvaro Pereyra <alvaro@xendacentral.com> | 2012-05-28 03:24:52 -0500 |
commit | 95fde2c09b1261de84828d19cf9d895120c5b543 (patch) | |
tree | bd4afe80a31d246af4fb01c302ce22dae811f59c | |
parent | 2bef137d99a473e5f6a423bc796bc76b63c9bcf0 (diff) | |
download | rails-95fde2c09b1261de84828d19cf9d895120c5b543.tar.gz rails-95fde2c09b1261de84828d19cf9d895120c5b543.tar.bz2 rails-95fde2c09b1261de84828d19cf9d895120c5b543.zip |
Updates Array conversions method documentations and clean ups
-rw-r--r-- | activesupport/lib/active_support/core_ext/array/conversions.rb | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/activesupport/lib/active_support/core_ext/array/conversions.rb b/activesupport/lib/active_support/core_ext/array/conversions.rb index d8b8585ada..2b7e9942bf 100644 --- a/activesupport/lib/active_support/core_ext/array/conversions.rb +++ b/activesupport/lib/active_support/core_ext/array/conversions.rb @@ -23,8 +23,6 @@ class Array # the connector options defined on the 'support.array' namespace in the # corresponding dictionary file. # - # Examples: - # # [].to_sentence # => "" # ['one'].to_sentence # => "one" # ['one', 'two'].to_sentence # => "one and two" @@ -88,7 +86,6 @@ class Array # Converts a collection of elements into a formatted string by calling # <tt>to_s</tt> on all elements and joining them. Having this model: # - # # class Blog < ActiveRecord::Base # def to_s # title @@ -97,7 +94,6 @@ class Array # # Blog.all.map(&:title) #=> ["First Post", "Second Post", "Third post"] # - # # <tt>to_formatted_s</tt> shows us: # # Blog.all.to_formatted_s # => "First PostSecond PostThird Post" |