diff --git a/rbi/annotations/activesupport.rbi b/rbi/annotations/activesupport.rbi index e8126270..d5c81231 100644 --- a/rbi/annotations/activesupport.rbi +++ b/rbi/annotations/activesupport.rbi @@ -59,6 +59,37 @@ class Hash def extractable_options?; end end +class Integer + sig { returns(ActiveSupport::Duration) } + def seconds; end + sig { returns(ActiveSupport::Duration) } + def second; end + sig { returns(ActiveSupport::Duration) } + def minutes; end + sig { returns(ActiveSupport::Duration) } + def minute; end + sig { returns(ActiveSupport::Duration) } + def hours; end + sig { returns(ActiveSupport::Duration) } + def hour; end + sig { returns(ActiveSupport::Duration) } + def days; end + sig { returns(ActiveSupport::Duration) } + def day; end + sig { returns(ActiveSupport::Duration) } + def weeks; end + sig { returns(ActiveSupport::Duration) } + def week; end + sig { returns(ActiveSupport::Duration) } + def months; end + sig { returns(ActiveSupport::Duration) } + def month; end + sig { returns(ActiveSupport::Duration) } + def years; end + sig { returns(ActiveSupport::Duration) } + def year; end +end + class Array sig { params(position: Integer).returns(T.self_type) } def from(position); end