File: backports.rb

package info (click to toggle)
ruby-diff-lcs 1.5.1-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 448 kB
  • sloc: ruby: 2,983; makefile: 10
file content (9 lines) | stat: -rw-r--r-- 169 bytes parent folder | download
1
2
3
4
5
6
7
8
9
# frozen_string_literal: true

unless 0.respond_to?(:positive?)
  class Fixnum # standard:disable Lint/UnifiedInteger
    def positive?
      self > 0
    end
  end
end