lib/active_support/duration.rb in activesupport-3.0.0.beta3 vs lib/active_support/duration.rb in activesupport-3.0.0.beta4

- old
+ new

@@ -36,9 +36,10 @@ end def is_a?(klass) #:nodoc: Duration == klass || value.is_a?(klass) end + alias :kind_of? :is_a? # Returns true if <tt>other</tt> is also a Duration instance with the # same <tt>value</tt>, or if <tt>other == value</tt>. def ==(other) if Duration === other