class ActiveSupport::Duration

def self.===(other) #:nodoc:

:nodoc:
def self.===(other) #:nodoc:
  other.is_a?(Duration)
rescue ::NoMethodError
  false
end