diff options
author | Francesco Rodriguez <lrodriguezsanc@gmail.com> | 2012-05-13 20:26:53 -0500 |
---|---|---|
committer | Francesco Rodriguez <lrodriguezsanc@gmail.com> | 2012-05-13 20:26:53 -0500 |
commit | fa03e37d31d7c69c90d41f0764c374318d8dced0 (patch) | |
tree | d054b9be17995e88a10ae6a9e49bfd0e8b84bbbb /activesupport/lib/active_support/core_ext/date | |
parent | bbd37753bf59a11a9e9b38a3ac7a94ec2906e188 (diff) | |
download | rails-fa03e37d31d7c69c90d41f0764c374318d8dced0.tar.gz rails-fa03e37d31d7c69c90d41f0764c374318d8dced0.tar.bz2 rails-fa03e37d31d7c69c90d41f0764c374318d8dced0.zip |
removing unnecessary 'examples' noise from activesupport
Diffstat (limited to 'activesupport/lib/active_support/core_ext/date')
-rw-r--r-- | activesupport/lib/active_support/core_ext/date/calculations.rb | 2 | ||||
-rw-r--r-- | activesupport/lib/active_support/core_ext/date/conversions.rb | 2 |
2 files changed, 0 insertions, 4 deletions
diff --git a/activesupport/lib/active_support/core_ext/date/calculations.rb b/activesupport/lib/active_support/core_ext/date/calculations.rb index 323126fcfa..3e36c54eba 100644 --- a/activesupport/lib/active_support/core_ext/date/calculations.rb +++ b/activesupport/lib/active_support/core_ext/date/calculations.rb @@ -107,8 +107,6 @@ class Date # Returns a new Date where one or more of the elements have been changed according to the +options+ parameter. # - # Examples: - # # Date.new(2007, 5, 12).change(:day => 1) # => Date.new(2007, 5, 1) # Date.new(2007, 5, 12).change(:year => 2005, :month => 1) # => Date.new(2005, 1, 12) def change(options) diff --git a/activesupport/lib/active_support/core_ext/date/conversions.rb b/activesupport/lib/active_support/core_ext/date/conversions.rb index 97e3c71992..81f969e786 100644 --- a/activesupport/lib/active_support/core_ext/date/conversions.rb +++ b/activesupport/lib/active_support/core_ext/date/conversions.rb @@ -26,7 +26,6 @@ class Date # # This method is aliased to <tt>to_s</tt>. # - # ==== Examples # date = Date.new(2007, 11, 10) # => Sat, 10 Nov 2007 # # date.to_formatted_s(:db) # => "2007-11-10" @@ -69,7 +68,6 @@ class Date # Converts a Date instance to a Time, where the time is set to the beginning of the day. # The timezone can be either :local or :utc (default :local). # - # ==== Examples # date = Date.new(2007, 11, 10) # => Sat, 10 Nov 2007 # # date.to_time # => Sat Nov 10 00:00:00 0800 2007 |