summaryrefslogtreecommitdiff
path: root/lib/diff/lcs/backports.rb
blob: 642fc9c979a7a578d4aeeefaba136dabb3bb417e (plain)
1
2
3
4
5
6
7
8
9
# frozen_string_literal: 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