From d71d5ba71fadf4219c466c0332f78f6e325bcc6c Mon Sep 17 00:00:00 2001 From: Francesco Rodriguez Date: Mon, 17 Sep 2012 00:22:18 -0500 Subject: update AS docs [ci skip] --- activesupport/lib/active_support/duration.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'activesupport/lib/active_support/duration.rb') diff --git a/activesupport/lib/active_support/duration.rb b/activesupport/lib/active_support/duration.rb index a0139b7d8e..7e99646117 100644 --- a/activesupport/lib/active_support/duration.rb +++ b/activesupport/lib/active_support/duration.rb @@ -6,7 +6,7 @@ module ActiveSupport # Provides accurate date and time measurements using Date#advance and # Time#advance, respectively. It mainly supports the methods on Numeric. # - # 1.month.ago # equivalent to Time.now.advance(:months => -1) + # 1.month.ago # equivalent to Time.now.advance(months: -1) class Duration < BasicObject attr_accessor :value, :parts @@ -39,8 +39,8 @@ module ActiveSupport end alias :kind_of? :is_a? - # Returns true if other is also a Duration instance with the - # same value, or if other == value. + # Returns +true+ if +other+ is also a Duration instance with the + # same +value+, or if other == value. def ==(other) if Duration === other other.value == value -- cgit v1.2.3