summaryrefslogtreecommitdiff
path: root/lib/diff/lcs/backports.rb
blob: 214a59ab9f4b09e35b644d917db5b621a42252e8 (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 Styel/NumericPredicate
    end
  end
end