From 95fde2c09b1261de84828d19cf9d895120c5b543 Mon Sep 17 00:00:00 2001 From: Alvaro Pereyra Date: Mon, 28 May 2012 03:24:52 -0500 Subject: Updates Array conversions method documentations and clean ups --- activesupport/lib/active_support/core_ext/array/conversions.rb | 4 ---- 1 file changed, 4 deletions(-) (limited to 'activesupport/lib/active_support/core_ext') 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 # to_s 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"] # - # # to_formatted_s shows us: # # Blog.all.to_formatted_s # => "First PostSecond PostThird Post" -- cgit v1.2.3