blob: 7109368b375a5e8fae5c3ca11c902105a0af5926 (
plain)
1
2
3
4
5
6
7
8
9
10
|
# frozen_string_literal: true
# typed: true
unless 0.respond_to?(:positive?)
class Fixnum # rubocop:disable Lint/UnifiedInteger, Style/Documentation
def positive?
self > 0 # rubocop:disable Style/NumericPredicate
end
end
end
|