method
is_a?
is_a?(klass)
public
Hide source
# File activesupport/lib/active_support/duration.rb, line 324 def is_a?(klass) # :nodoc: Duration == klass || value.is_a?(klass) end